Last active
March 26, 2020 18:07
-
-
Save jchristopher/5e045a39339474f94eb7160fc8777b00 to your computer and use it in GitHub Desktop.
Always ignore Post 732 and Page 98 in SearchWP
This file contains 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 | |
// 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