M_setup_default_rules

The Membership 2 M setup default rules function.

Description

M_setup_default_rules(); 

Usage

  1. if ( !function_exists( 'M_setup_default_rules' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/includes/default.rules.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = M_setup_default_rules(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/app_old/membershipincludes/includes/default.rules.php  
  1. function M_setup_default_rules() { 
  2.  
  3. M_register_rule('downloads', 'M_Downloads', 'content'); 
  4. M_register_rule('comments', 'M_Comments', 'main'); 
  5. M_register_rule('more', 'M_More', 'main'); 
  6. M_register_rule('categories', 'M_Categories', 'main'); 
  7. M_register_rule('pages', 'M_Pages', 'main'); 
  8. M_register_rule('posts', 'M_Posts', 'main'); 
  9. M_register_rule('shortcodes', 'M_Shortcodes', 'content'); 
  10. M_register_rule('menu', 'M_Menu', 'main'); 
  11. M_register_rule('urlgroups', 'M_URLGroups', 'main'); 
  12.  
  13. if(is_multisite()) { 
  14. M_register_rule('blogcreation', 'M_Blogcreation', 'admin'); 
  15.