WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. somethumb
    Member
    Posted 11 months 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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.