Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Add a Agree to Our Terms of Use Field to Restrict Content Pro

Posted on January 20, 2012 by Pippin in Action and Filter Hooks, Free Members, Intermediate, Member Restricted, Tutorials, Video Tutorials 21 Comments
Home» Tutorials » Action and Filter Hooks » Add a Agree to Our Terms of Use Field to Restrict Content Pro
Tweet
Love It - 0
This entry is part 8 of 8 in the Customizing Restrict Content Pro Series
← Hide wp-login.php with Restrict Content Pro
  • Mail Chimp for Restrict Content Pro
  • Add Custom User Meta Fields to Restrict Content Pro Registration
  • Removing “Restrict This Content” Meta Box in Restrict Content Pro
  • Restrict Content Pro – Campaign Monitor
  • Restrict Content Pro – Graphs
  • Restrict Content Pro – Stripe Payment Gateway
  • Hide wp-login.php with Restrict Content Pro
  • Add a Agree to Our Terms of Use Field to Restrict Content Pro

Restrict Content Pro, my plugin that allows you to easily run a premium subscription site with WordPress, has a very flexible registration form that is easy to add extra fields to. Want to add a field that stores extra information about the registering user? That’s easy! Want to add a new checkbox that users must check in order to agree to your terms of use? That’s also easy! In this tutorial, I’m going to demonstrate how to add the latter.


You must be logged in to view the rest of this content. Register or login from the sidebar.


Related Items
  • Restrict Content Pro – Premium Content Plugin
Tweet Follow @pippinsplugins
add_action, restrict content pro

21 comments on “Add a Agree to Our Terms of Use Field to Restrict Content Pro”

  1. poifox says:
    January 21, 2012 at 4:02 pm

    Awesome! I’ll have to integrate this to Blend Swap :)

    Reply
    • Pippin says:
      January 21, 2012 at 4:08 pm

      Thanks! Is the plugin still working well?

    • poifox says:
      January 23, 2012 at 2:39 pm

      We have a lot of delays on implementing it because not doing the promised tests, I will push Matt to do them today and will inform you if we run into any problems.

    • Pippin says:
      January 23, 2012 at 2:54 pm

      Take your time.

  2. ali Ahmad says:
    January 10, 2013 at 7:49 am

    Dear I am trying for required field but its not working i cant see my error message and i can go to payment page with out DO1 Number. Below is my code
    Please have look and let me know where is error
    function pippin_add_do1_field(){

    ob_start(); ?>

    add(‘agree_to_do1′, __(‘You must have D.O.1 number’, ‘rcp’));
    }
    }
    add_action(‘rcp_form_errors’, ‘pippin_rcp_check_for_do1′);

    Reply
  3. ali Ahmad says:
    January 10, 2013 at 8:09 am

    even i Used same code for agree to term use that you mentioned above. I can see agree to term check box at my page but if i dont check this box it does not show me error message same i dont get error message for my own fields.

    Reply
  4. ali Ahmad says:
    January 10, 2013 at 8:31 am

    here is my complete code for one field

    http://snippi.com/s/xt63dtb

    Reply
    • Pippin says:
      January 14, 2013 at 9:07 pm

      I’ve been getting a lot of reports on this. I think it’s a bug in the core plugin. I’m going to look into it and get a fix pushed out as soon as I can.

  5. sime poz says:
    February 8, 2013 at 9:21 am

    Hi Pippin,
    were is my error in this code? I have insert your code for locations field (it’s ok) and agree terms (seems don’t work) in the same custom-function.php
    http://snippi.com/s/183muce

    Thanks in advance

    Reply
    • Pippin says:
      February 9, 2013 at 6:25 pm

      Are you getting a syntax error or is the code just not seeming to work?

    • sime poz says:
      February 10, 2013 at 4:57 pm

      hi, thank for response. Not error, only don’t appear the button for Agree terms.

  6. sime poz says:
    February 10, 2013 at 5:03 pm

    here the page
    http://bit.ly/11zVoEd

    Reply
    • Pippin says:
      February 11, 2013 at 8:53 pm

      Where did you put the custom-functions.php file? In wp-content/plugins?

  7. sime poz says:
    February 12, 2013 at 5:36 pm

    wp-content/plugins/restrict-content/includes/custom-function.php

    Reply
    • Pippin says:
      February 19, 2013 at 2:50 pm

      Sime,

      Not quite what you need. You need to create an entirely separate plugin and then paste the code into that. Use this plugin to create a custom plugin: http://wordpress.org/extend/plugins/pluginception/

  8. Jason says:
    February 16, 2013 at 7:28 pm

    you have the class=”require” should be “required” ;)

    Reply
  9. Nick Ciske says:
    February 19, 2013 at 11:59 am

    Just ran into this issue (custom errors not appearing or affecting validation).

    What fixed it was adding the (supposedly optional) $data argument.

    So:
    rcp_errors()->add(‘sample_field_required’, __(‘You must check this field’, ‘rcp’));

    Becomes:
    rcp_errors()->add(‘sample_field_required’, __(‘You must check this field’, ‘rcp’), ‘register’);

    Reply
  10. sime poz says:
    March 1, 2013 at 12:50 pm

    Hi Pippin, not working! :(
    I’ve download Pluginception, I’ve create a new plugin (I call it restric content 2), I’ve modified “Restric content pro” in the selector plugin, I’ve upload custom-function.php (http://snippi.com/s/183muce) in the new plugin. The path is wp-content/plugins/restric-content-2/custom-function.php
    The page http://bit.ly/11zVoEd

    Reply
    • Pippin says:
      March 4, 2013 at 8:55 pm

      Is that the complete plugin file?

  11. sime poz says:
    March 5, 2013 at 6:42 am

    see the photo of path http://bit.ly/Zd3ifG

    Reply
    • Pippin says:
      March 5, 2013 at 8:23 pm

      I meant the complete contents of the file.

Leave a Reply Cancel 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>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • Restrict Content Pro – Member Discounts for Easy Digital Downloads
  • Restrict Content Pro – bbPress Extension
  • Restrict Content Pro – Wysija Add On
  • Restrict Content Pro – CSV User Import
  • WP Push Releases Restrict Content Pro Extension

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes

Latest Tutorials

  • Storing Session Data in WordPress without $_SESSION (19)

    The term Session in web development refers to...

  • Test Your Plugins with RTL (1)

    Right-To-Left languages are those that...

  • Submitting Your First Pull Request to a WordPress Plugin on Github (5)

    Github is an extremely popular tool for managing WordPress plugins, and one...

Enter your email to receive automated updates when new posts are published

WP Core Contributions

  • [24316]

View the ticket on Trac.

WP Codex Contributions

  • Function: shortcode exists
  • Function: has shortcode
  • Function: shortcode exists
  • Function: shortcode exists
  • Function: has shortcode

View all 41 changes in the Codex.

Latest Tweets

  • Could not fetch Twitter RSS feed.

Topics

attachments featured hook meta box campaign monitor wp_enqueue_script Rémi Corson shortcodes Tom McFarlin get_user_meta contextual help register_setting add_shortcode image plugin forms do_action short codes mail chimp Related posts login authors attachment post types apply_filters comments recent posts short code bbpress taxonomies custom post type Ajax images gallery Stripe jquery taxonomy widgets users add_filter easy content types add_action widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins