bp_get_group_total_members

  • apply_filters( 'bp_get_group_total_members', $group->total_member_count )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-template.php :: Trac Source Line: 754
      function bp_group_total_members( $group = false ) {
      	echo bp_get_group_total_members( $group );
      }
      	function bp_get_group_total_members( $group = false ) {
      		global $groups_template;
      
      		if ( !$group )
      			$group =& $groups_template->group;
      
      		return apply_filters( 'bp_get_group_total_members', $group->total_member_count );
      	}
      
      function bp_group_member_count() {
      	echo bp_get_group_member_count();
      }
      	function bp_get_group_member_count() {
      		global $groups_template;
      
      		if ( 1 == (int) $groups_template->group->total_member_count )
      			return apply_filters( 'bp_get_group_member_count', sprintf( __( '%s member', 'buddypress' ), bp_core_number_format( $groups_template->group->total_member_count ) ) );
      

Hook: add_filter: bp_get_group_total_members instances (1)

  • add_filter( 'bp_get_group_total_members',    'bp_core_number_format' )
    $tag: bp_get_group_total_members
    $function_to_add: bp_core_number_format
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-filters.php :: Trac Source Line: 43
      add_filter( 'bp_get_group_member_link',         'stripslashes' );
      
      add_filter( 'groups_new_group_forum_desc', 'bp_create_excerpt' );
      
      add_filter( 'groups_group_name_before_save',        'force_balance_tags' );
      add_filter( 'groups_group_description_before_save', 'force_balance_tags' );
      
      add_filter( 'bp_get_total_group_count',      'bp_core_number_format' );
      add_filter( 'bp_get_group_total_for_member', 'bp_core_number_format' );
      add_filter( 'bp_get_group_total_members',    'bp_core_number_format' );
      
      function bp_groups_filter_kses( $content ) {
      	global $allowedtags;
      
      	$groups_allowedtags                  = $allowedtags;
      	$groups_allowedtags['a']['class']    = array();
      	$groups_allowedtags['img']           = array();
      	$groups_allowedtags['img']['src']    = array();
      	$groups_allowedtags['img']['alt']    = array();
      	$groups_allowedtags['img']['class']  = array();
      

Comments are closed.