Created
November 15, 2017 10:52
-
-
Save wpflippercode/1de1dbaeabea56c68740ea8ce1bf40a1 to your computer and use it in GitHub Desktop.
Display / Hide Age Verification Popup For Particular Post / Page
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
add_filter('agp_verify_age','agp_show_modal'); | |
function agp_show_modal($show_popup,$post_id) { | |
//check condition according to post id & then return boolean value | |
return $show_popup; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment