M_AddSimpleInviteField

The WordPress Core M AddSimpleInviteField function.

Description

M_AddSimpleInviteField(); 

Usage

  1. if ( !function_exists( 'M_AddSimpleInviteField' ) ) { 
  2. require_once '/app_old/membershipincludes/addons/simple.invitecodes.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = M_AddSimpleInviteField(); 
  7.  

Defined (1)

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

/app_old/membershipincludes/addons/simple.invitecodes.php  
  1. function M_AddSimpleInviteField() { 
  2.  
  3. $Msi_options = M_get_option('membership_simpleinvite_options', array()); 
  4. if(empty($Msi_options['inviterequired']) || $Msi_options['inviterequired'] != 'yes') { 
  5. return; 
  6.  
  7. ?> 
  8. <div class="form-element"> 
  9. <label class="control-label" for="user_email"><?php _e('Invite Code', 'membership'); ?></label> 
  10. <div class="element"> 
  11. <input type="text" autocomplete="off" class="input-xlarge" name="invitecode"> 
  12. </div> 
  13. </div> 
  14. <?php