Hide and Catch Email

Newly re-written to replace the whole page/post(s) content. It will replace the content with a form a user (who is not logged in and/or set to a certain user role (set by you on a per post basis)) would have to fill out to see said content. Right now the form consists of a name field, email address, comment field, and spam deterant.

There are two options for the cotent replacement. 1) capability => defaults to ‘activate_plugins’. 2) text => defualts to empty – (the text you’d like placed before the form).

For requests or feedback please leave comments on Hide & Catch Email.

Try the Pro version, including double spam protection and AJAX submission.


Latest version: Download Hide and Catch Email v0.3.5.1 [[zip]] (Downloaded: 1453 times)


Why create this plugin?

I created this plugin to hide certain content and only reveal it when a user enters there email addresss.


Version (12/3/12)
  • Removed PHP4 activation.
  • Updated dashboard.
Version 0.3.5 (11/8/11)
  • Feeds updated.
  • WordPress 3.3 check.
Version 0.3.4 (9/8/11)
  • Dashboard fix.
Version 0.3.3 (6/23/11)
  • [BUG FIX] An error in the dashboard widget is casuing some large images. Sorry. Always escape.
Version 0.3.2 (3/30/11)
  • Dashboard widget updated.
Version 0.3.1 (3/15/11)
  • Changed variable where user was getting email instead of site admin.
Version 0.3 (3/10/11)
  • Complete rewrite of plugin.
  • Setting page removed
  • Fixed header already sent by (…).
  • Removed shortcode.
  • Replaces the whole $content. Use included meta box.
  • TODO:
    ** Use AJAX replacement.
    ** Already 90% written, just needs cross browser testing.
Version 0.2.3 (2/24/11)
  • Removed javscript link causing hang-ups.
Version 0.2.2 (2/9/11)
  • Updated the feed parser to comply with deprecated rss.php and use class-simplepie.php
Version 0.2.1
  • Definitions we’re all pointing to the incorrect directories.
  • Removed unnecessary files.
  • Cleaned up option and pointed link to correct address in WordPress
Version 0.2
  • Initial Release.
Version 0.1
  • First build.


  1. hide-and-catch-email screenshot 1

    Replacement form

  2. hide-and-catch-email screenshot 2

    Replacement form with error

  3. hide-and-catch-email screenshot 3



  1. Dear Austin,
    Can’t understand where to insert the code for hide catch email


  2. How to increase the length of cookies? For the form to appear only the first time the form is submitted in the case of many posts contain the shortcode [replace] [/ replace].


    (Google translator)

  3. damian

    hey, I’ve been attempting to adjust your script to go by category instead of having to set each post to true. also to remove the comment area that shows up below. I havent been having much luck, figured i go to the expert. Any thoughts?


    ( i think is would be easy I was trying to use another function to check category and return true is so, then run that function on your $hide variable, what do you think?)

  4. chase

    hey i installed your plugin but can not seem to find the setting page link on my admin page. I have activated the plugin but how do I make it start working>>>>


    1. There are no global settings page. It’s a custom meta box found on all public post types.

  5. chase

    ok another question… when the user presses submit, where is there info sent????

  6. Konstantin

    Hi, Austin! Superb plugin!
    Do you have the version where only some text (maybe inside tags [hide]), not the whole page is invisible until the form is completed?

  7. someguy

    Suggest you use wp_mail instead of the php mail function to make this compatible with the WP SMTP plugin. I changed it and it works.


  8. Hi Austin,
    I am very excited to use your Hide and Catch plugin, as it appears to be the only one of its kind. I want to use it to restrict access to my downloads page to those who have entered an email to subscribe to my email newsletter. However, I’d like to edit the form a little bit, because I don’t need the comments area (they won’t be commenting on anything, so I think they’ll be annoyed by mandatory commenting), and for that matter I’d rather not have the name be mandatory either- I’d like to just have the email mandatory. How can I edit the comment form? I don’t have code writing experience.
    Thank you,


    1. At this point it’d required, maybe I can look into changing that in an upcoming version.


      1. Thanks for considering it! I’ll keep an eye out for a new version.


  9. Hi!

    I’ve installed the plugin and inserted it on a page (website above(, but when the user fills the form, the data are not sent to my e-mail. The user can see the hidden content, but the email never comes.

    Can you help me?

    (We’ve changed a little bit the form inputs and the e-mail address, but no the mail function. It hasn’t worked also if the original code)


  10. Hi,

    This plug-in is exactly what I was looking for, but where do the captured email addresses go to?


      1. No, but I certainly can do that. There is a metabox which holds the emails on that particular post_type.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>