bp_registration_options_prevent_activity_posting

Prevents "___ has become a registered member" messages in activity.

Description

bp_registration_options_prevent_activity_posting( (BP_Activity_Activity) $args ); 

Parameters (1)

0. $args (BP_Activity_Activity)
Array of arguments for activity item.

Usage

  1. if ( !function_exists( 'bp_registration_options_prevent_activity_posting' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-registration-options/includes/core.php'; 
  3.  
  4. // Array of arguments for activity item. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_registration_options_prevent_activity_posting($args); 
  9.  

Defined (1)

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

/includes/core.php  
  1. function bp_registration_options_prevent_activity_posting( $args ) { 
  2. if ( true === bp_registration_get_moderation_status( $args->user_id ) && 'new_member' === $args->type ) { 
  3. $args->type = '';