WordPress.org

Forums

Age Verify
Age Verify on One Page Website (1 post)

  1. somethumb
    Member
    Posted 1 year ago #

    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?

    https://wordpress.org/plugins/age-verify/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Age Verify
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.