-
-
Save jeherve/2541d2eef8231507d299 to your computer and use it in GitHub Desktop.
Add post__not_in to IS query args
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 | |
function jeherve_is_allowed_vars( $vars ) { | |
$vars[] = 'post__not_in'; | |
return $vars; | |
} | |
add_filter( 'infinite_scroll_allowed_vars', 'jeherve_is_allowed_vars' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment