Skip to content

Instantly share code, notes, and snippets.

@rafaehlers
Last active March 10, 2023 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rafaehlers/88ef4e6eabc4ba8aef4c544da7938e94 to your computer and use it in GitHub Desktop.
Save rafaehlers/88ef4e6eabc4ba8aef4c544da7938e94 to your computer and use it in GitHub Desktop.
Prevent Entry Approval Notes from displaying on the View
<?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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment