In lots of these recipes, you will see the instructions to add some bunch of code to the “active theme’s functions.php file” or “a custom plugin”. How do you go about creating a custom plugin? Like this.

You will need to be able to FTP into your website. If you don’t know how, ask your host or Google it.

  1. Create a folder called pmpro-customizations in the wp-content/plugins folder of your site.
  2. Create a file called pmpro-customizations.php in the folder you just created.
  3. Edit pmpro-customizations.php and paste this code into it:

    <?php
    /*
    Plugin Name: PMPro Customizations
    Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
    Description: Customizations for Paid Memberships Pro
    Version: .1
    Author: Stranger Studios
    Author URI: http://www.strangerstudios.com
    */
  4. Add the code for the recipe you are doing at the bottom of pmpro-customizations.php.
  5. Save it.
  6. Go to Plugins in your WP Dashboard and active the PMPro Customizations plugin.

Tada!

6 Responses to Create a Plugin for PMPro Customizations

  1. Hide the PMPro "Require Membership" meta box from non-admins on add/edit post screen. - Paid Memberships Pro says:

    [...] on the edit post screen. Here is some code to add to your activetheme’s functions.php or a custom plugin. /* Hide the PMPro "Require Membership" meta box from non-admins on add/edit post [...]

  2. Keep Non-Members From Posting Comments | Paid Memberships Pro says:

    […] Below is a simple block of code you can place in your theme’s functions.php file or in a helper customizations plugin (ideal method) to restrict […]

  3. leihan says:

    this looks very doable. 3 questions.
    1. do custom plug ins slow down the speed of my site?
    2. do I need to do anything to the custom plugin when a new version of the PaidMembership pro updates?
    3. I want to use this new plugin you got but don’t want to require Last Name. Should I create a custom plug in and edit the code from https://github.com/strangerstudios/pmpro-add-name-to-checkout OR just download this one and edit the code in there directly to NOT require last name?

    thank you! love this help forum so far. great job!

    Lei

  4. Susie Koether says:

    can you have more than one customized plug-in at a time? or do you put them into this one instance?

    • Kimberly Coleman says:

      All customizations can go into the same pmpro-customizations file core plugin file (pmpro-customizations.php). We have some add ons that function as separate plugins but for code recipes and defining certain global variables in conjunction with add on plugins, you just need a single pmpro-customizations plugin.

  5. Jessica O on "[Plugin: Paid Memberships Pro] Display Single Level Checkout with Shortcode" | Wordpress Problems & Erros - How to fix says:

    […] 2. Define a default checkout level for PMPro to use with this code:define("PMPRO_DEFAULT_LEVEL", "1"); You will want to place that in your active theme’s functions.php file or a customizations plugin as described here: http://www.paidmembershipspro.com/2012/08/create-a-plugin-for-pmpro-customizations/ […]

Leave a Reply

Ready to Get Paid? Get Paid Memberships Pro Now

Or download the full Paid Memberships Pro plugin for free.

GPL v2