Add Terms and Conditions to Restrict Content Pro

TL;DR – I wrote a WordPress plugin to add Terms and Conditions to the registration form when using the Restrict Content Pro plugin .

I just recently built a WordPress membership site using the Restrict Content Pro plugin and a few add-ons. However since they were taking money (via Stripe) in the registration process the user wanted a terms and conditions checkbox to ensure the customer knew what they were getting with the membership.

I figured this might come in handy so I built and released a plugin for it.

Upon installation and activation, you will see a new submenu item under “Restrict” called “Terms”.

RCP - Terms and Conditions

Under “Terms” you will see a simple admin settings page that allows you to set the label for the Terms and Conditions checkbox that shows up on the registration form as well as the link to your terms and conditions (whether that’s a page on your site or a PDF on a CDN).

RCP Terms Settings

The code and idea for the plugin is loosely based on this blog post Add a Agree to Our Terms of Use Field to Restrict Content Pro from @pippinsplugins.

Plugin code on Github: Restrict Content Pro Terms and Conditions

Install via WordPress Plugin repo: Restrict Content Pro – Terms and Conditions

WordPress Query Multiple Taxonomies

This example is for an employee directory. We created a custom post type called “employee”. For that custom post type we created two custom taxonomies – “type” and “department”. Lets say we want to find employees in the technology department that are programmers.

[code]$args=array(
‘post_type’ => ’employee’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => -1,
‘caller_get_posts’ => 1,
‘order’ => ‘ASC’,
‘orderby’ => ‘title’,
‘type’ => ‘programmer’,
‘department’ => ‘technology’
);

query_posts( $args );

// loop it[/code]

Hopefully this helps if you are looking to query multiple custom taxonomies from custom post types in WordPress. Have questions? Let us know in the comments!

WordPress Development Intro – Iowa Code Camp

A couple weeks ago Kenny Younger and I got the chance to preach all things WordPress at Iowa Code Camp.

Here is the live stream I recorded along with the slides from the presentation!

Video

[flashvideo file=http://48web.s3.amazonaws.com/videos/IntroToWordPressDevelopmentIowaCodeCamp.flv /]

Slides