bp_core_activity_registered_member_action

  • apply_filters( 'bp_core_activity_registered_member_action', sprintf( __( '%s became a registered member', 'buddypress' ), $userlink ), $user_id )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-signup.php :: Trac Source Line: 521
      		$user_id = $user;
      
      	if ( empty( $user_id ) )
      		return false;
      
      	$userlink = bp_core_get_userlink( $user_id );
      
      	bp_activity_add( array(
      		'user_id'   => $user_id,
      		'action'    => apply_filters( 'bp_core_activity_registered_member_action', sprintf( __( '%s became a registered member', 'buddypress' ), $userlink ), $user_id ),
      		'component' => 'xprofile',
      		'type'      => 'new_member'
      	) );
      }
      add_action( 'bp_core_activated_user', 'bp_core_new_user_activity' );
      
      function bp_core_map_user_registration( $user_id ) {
      	// Only map data when the site admin is adding users, not on registration.
      	if ( !is_admin() )
      		return false;
      

Comments are closed.