membership

The Paid Memberships Pro membership shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[membership]'); 
  1. // variable usage 
  2. $result = do_shortcode('[membership]'); 
  3. echo $result;  

Defined (1)

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

/shortcodes/membership.php  
  1. if($hasaccess) 
  2. return do_shortcode($content); //show content 
  3. else 
  4. return ""; //just hide it 
  5. add_shortcode("membership", "pmpro_shortcode_membership");