How Do I Protect Themes + As Payment Gateway?


We are evaluating Membership for We want to build on top of it and save some dev time if possible.

1) We haven’t figured out how to protect a theme. The docs hint that this is possible but we haven’t seen anything yet. Can you point out how we would enable this? Or some example PHP that we could use to build out own Access Levels menus?

2) Do you plan on supporting as a payement gateway?


PS: Some bugs my developer found.


Notice: Undefined index: membershipadminshortcodes in /wp-content/plugins/membership/membershipincludes/classes/membershipadmin.php on line 7551
Notice: Undefined index: membershipdownloadgroups in /wp-content/plugins/membership/membershipincludes/classes/membershipadmin.php on line 7573
Notice: Undefined index: paymentcurrency in /wp-content/plugins/membership/membershipincludes/classes/membershipadmin.php on line 3062
Notice: Undefined index: renewalperiod in /wp-content/plugins/membership/membershipincludes/classes/membershipadmin.php on line 3120
Notice: Undefined index: upgradeperiod in /wp-content/plugins/membership/membershipincludes/classes/membershipadmin.php on line 3149


File: plugins/membership/membershipincludes/classes/membershipadmin.php

In WordPress 3.5.1 the function is_plugin_active_for_network() doesn't "exist" below, so the network menu will never work. Per WordPress docs it needs to be included for it to do anything.

if ( ! function_exists( ‘is_plugin_active_for_network’ ) )

require_once( ABSPATH . ‘/wp-admin/includes/plugin.php’ );

if( (is_plugin_active_for_network(‘membership/membershippremium.php’:wink:) && (defined(‘MEMBERSHIP_GLOBAL_TABLES’:wink: && MEMBERSHIP_GLOBAL_TABLES === true)) {

add_action(‘network_admin_menu’, array(&$this, ‘add_admin_menu’:wink:);

} else {

add_action(‘admin_menu’, array(&$this, ‘add_admin_menu’:wink:);


This change should probably be done in plugins/membership/membershipincludes/classes/class.tutorial.php as well.