Last active
December 17, 2019 15:45
-
-
Save landbryo/c792003614e3e976f3fddb6fb9e0a63e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 in array then disable View Limit functionality | |
| */ | |
| add_filter( 'skpvl_is_active', function ( $active ) { | |
| global $post; | |
| $disabled = [ 25, 33, 107 ]; | |
| if ( in_array( $post->ID, $disabled ) ) { | |
| $active = false; | |
| } | |
| return $active; | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment