This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Prevent Divi from using the "Grab the first post image" setting. | |
| * | |
| * It uses et_first_image() which uses apply_filters( 'the_content' ) which causes | |
| * a conflict GravityView, which uses 'the_content' filter. | |
| * | |
| * @param bool $setting Is the setting enabled and the request is not Buddypress? | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php // DO NOT COPY THIS LINE | |
| add_filter( 'gravityview/entry_notes/get_notes', 'gv_remove_entry_approval_notes', 10, 2 ); | |
| function gv_remove_entry_approval_notes( $notes, $entry_id ) { | |
| foreach($notes as $key => $note){ | |
| if (strpos( $note->value, 'WordPress') !== false){ | |
| unset( $notes[ $key] ); | |
| } | |
| } | |
| return $notes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'gravityview/edit_entry/user_can_edit_entry', 'gv_claim_entry_by_user_data', 20, 3 ); | |
| /** | |
| * Allow logged-in users to edit entries where their user data matches a field value in the entry. | |
| * | |
| * Supports multiple Views, each with its own field to check against the current user's display name. | |
| * | |
| * @see https://docs.gravitykit.com/article/520-allow-user-edit-field-match |
OlderNewer