bp_registration_options_bp_after_activate_content

Display pending message to users until they're activated.

Description

bp_registration_options_bp_after_activate_content(); 

Usage

  1. if ( !function_exists( 'bp_registration_options_bp_after_activate_content' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-registration-options/includes/core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_registration_options_bp_after_activate_content(); 
  7.  

Defined (1)

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

/includes/core.php  
  1. function bp_registration_options_bp_after_activate_content() { 
  2. $user = get_current_user_id(); 
  3. $moderate = get_option( 'bprwg_moderate' ); 
  4.  
  5. $activate_screen = ( false === strpos( $_SERVER['REQUEST_URI'], 'activate' ) ) ? false : true; 
  6. if ( $activate_screen || bp_registration_get_moderation_status( $user ) ) { 
  7. if ( $moderate ) { 
  8. $activate_message = stripslashes( get_option( 'bprwg_activate_message' ) ); 
  9. echo '<div id="message" class="error"><p>' . $activate_message . '</p></div>';