Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active March 26, 2020 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/5e045a39339474f94eb7160fc8777b00 to your computer and use it in GitHub Desktop.
Save jchristopher/5e045a39339474f94eb7160fc8777b00 to your computer and use it in GitHub Desktop.
Always ignore Post 732 and Page 98 in SearchWP
<?php
// Always ignore Post 732 and Page 98 in SearchWP.
add_filter(
'searchwp\post__not_in',
function( $ids ) {
return array_merge( $ids, [ 732, 98 ] );
},
20, 2
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment