Skip to content

Instantly share code, notes, and snippets.

@landbryo
Created December 6, 2019 16:31
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 landbryo/9a881272b0de01b40bde7ba757726afd to your computer and use it in GitHub Desktop.
Save landbryo/9a881272b0de01b40bde7ba757726afd to your computer and use it in GitHub Desktop.
/**
* If post ID is 25 then disable View Limit functionality
*/
add_filter( 'skpvl_is_active', function ( $active ) {
global $post;
if ( 25 == $post->ID ) {
$active = false;
}
return $active;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment