Age Verify on One Page Website
-
Because I’ve used the apply_filters function the age verify plugin doesn’t truly hide the content. I can still view the source and see the content.
I believe it’s because I’ve built a one-page website and used a loop like this to show the content for each page:
foreach ($pages as $page_data) {
$content = apply_filters('the_content', $page_data->post_content);
}
Because the plugin looks for the_content() and then applies the filter, is there a way instead to get the true/false flag so I can wrap the foreach loop in an if/then statement?
- The topic ‘Age Verify on One Page Website’ is closed to new replies.