bp_get_group_total_for_member

  • apply_filters( 'bp_get_group_total_for_member', BP_Groups_Member::total_group_count() )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-template.php :: Trac Source Line: 1301
      	<li<?php if ( 'delete-group' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/' . $group->slug ?>/admin/delete-group"><?php _e( 'Delete', 'buddypress' ); ?></a></li>
      <?php
      }
      
      function bp_group_total_for_member() {
      	echo bp_get_group_total_for_member();
      }
      	function bp_get_group_total_for_member() {
      		return apply_filters( 'bp_get_group_total_for_member', BP_Groups_Member::total_group_count() );
      	}
      
      function bp_group_form_action( $page ) {
      	echo bp_get_group_form_action( $page );
      }
      	function bp_get_group_form_action( $page, $group = false ) {
      		global $bp, $groups_template;
      
      		if ( !$group )
      			$group =& $groups_template->group;
      

Hook: add_filter: bp_get_group_total_for_member instances (1)

  • add_filter( 'bp_get_group_total_for_member', 'bp_core_number_format' )
    $tag: bp_get_group_total_for_member
    $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: 42
      add_filter( 'bp_get_group_member_name',         'stripslashes' );
      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();
      

Comments are closed.