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

Customizing Restrict Content Pro

Posted on February 24, 2012 by Pippin in Action and Filter Hooks, Advanced, Member Restricted, Subscriber Only, Tutorials, Writing Plugins 14 Comments
Home» Series » Customizing Restrict Content Pro
Tweet
Love It - 2

This series of tutorials demonstrate a lot of different ways that you can customize Restrict Content Pro to best suit your needs. Some topics that are covered include adding custom fields to the user registration form, adding a mail chimp newsletter signup option, customizing the admin tables, and more.

Some of the items listed in this series are complete plugins, and some are tutorials for do it yourself guides.

  • Mail Chimp for Restrict Content Pro
  • Add a Agree to Our Terms of Use Field to Restrict Content Pro
  • Add Custom User Meta Fields to Restrict Content Pro Registration
  • Restrict Content Pro - Stripe Payment Gateway
  • Removing "Restrict This Content" Meta Box in Restrict Content Pro
  • Restrict Content Pro - Graphs
  • Restrict Content Pro - Campaign Monitor
  • Hide wp-login.php with Restrict Content Pro
restrict content pro

14 comments on “Customizing Restrict Content Pro”

  1. Meir Bar-Tal says:
    July 21, 2012 at 10:14 pm

    To enforce First & Last name on the registration form, edit /includes/handle-registration-login.php and inside the block beginning with:
    if($need_new_user) {
    Add the following code:
    if($user_first == ”) {
    // Empty first name
    rcp_errors()->add(‘firstname_empty’, __(‘Please enter a First Name’, ‘rcp’));
    }
    if($user_last == ”) {
    // Empty last name
    rcp_errors()->add(‘lastname_empty’, __(‘Please enter a Last Name’, ‘rcp’));
    }

    Reply
    • Meir Bar-Tal says:
      July 21, 2012 at 11:11 pm

      Of course, this means changing a core functions file. I’d bet that Pippin has a more elegant way to achieve the same.

  2. Meir Bar-Tal says:
    July 21, 2012 at 11:10 pm

    Of course, the above means to change a core functions file, I’d bet Pippin has a more elegant way to do it.

    Reply
    • Pippin says:
      July 22, 2012 at 10:32 pm

      Thanks for comments, Meir.

  3. Oliver says:
    October 4, 2012 at 3:58 am

    Hi there, Is there a way to have Auto Renew on anyway? I dont want to offer the option on sign up. Is this possible?

    Thanks!

    Reply
    • Pippin says:
      October 4, 2012 at 9:17 am

      Yes, you can do this:

      1
      2
      3
      4
      5
      
      function rcp_force_auto_renew( $data ) {
      	$data['auto_renew'] = true;
      	return $data;
      }
      add_filter('rcp_subscription_data', 'rcp_force_auto_renew');
  4. Will says:
    November 18, 2012 at 5:34 pm

    Hi,

    I need to set up a members system for a client & am considering your plugin. I need to be able to make restricted posts purchasable in addition to being available to paid subscribers. Am i right in thinking this isn’t possible using your plugin? If it is possible to extend it to do this, could you outline how I would go about doing this? I’m ok with some coding.

    Thanks

    Will

    Reply
    • Pippin says:
      November 20, 2012 at 10:43 pm

      That will only be possible if you are very comfortable with PHP. Are you?

  5. Will says:
    November 22, 2012 at 10:29 pm

    Yep. wordpress kinda. PHP yes.

    Reply
    • Pippin says:
      November 23, 2012 at 10:25 am

      Ok what I would recommend is that you use a combination of RCP and my Easy Digital Downloads plugin. Doing some simple tweaks to integrate the two is pretty simple.

      Would that work for you?

  6. will says:
    November 23, 2012 at 3:23 pm

    OK, thanks. That plugin site looks really good!

    We have a lot of articles (custom post type) how easy / what would the process be to make these purchasable & available to subscribers?

    Would the admin have to create download products for each article? or change the articles to download products?

    Sorry for all the questions, I want to get the implementation right so its practical to manage for the admin.

    Reply
    • Pippin says:
      November 25, 2012 at 8:31 pm

      A product would need to be created for each article.

  7. Ben says:
    January 18, 2013 at 11:24 pm

    Hi, is there a way to have the change password form and the other account information (payment etc..) to all be on the ‘You are logged in page’ after being redirected when logged in?

    Thanks for any help :)

    Reply
    • Ben says:
      January 19, 2013 at 1:38 am

      it’s okay I’ve got it!

      For anyone looking for the same thing, I simply added:
      echo do_shortcode(‘[password_form]‘); in ‘Member-forms’.php.

      Keep up the fantastic work, absolutely love your plugins!!

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

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

campaign monitor add_options_page hook get_user_meta Rémi Corson the_content meta box register_setting Sugar Event Calendar attachments wp_enqueue_script contextual help shortcodes authors Related posts attachment image forms do_action plugin mail chimp login short codes comments recent posts post types apply_filters short code bbpress taxonomies custom post type gallery images Ajax Stripe taxonomy jquery 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