Created
December 6, 2019 16:31
-
-
Save landbryo/9a881272b0de01b40bde7ba757726afd to your computer and use it in GitHub Desktop.
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
/** | |
* 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