-
-
Save searchwpgists/bd5fd456353db9ce097c9d42243b0a96 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