bp_get_group_member_pagination
Filters the HTML markup to be used for group member listing pagination.
Description
Parameters (1)
- 0. $members_template_pag_links (string)
- The members template pag links.
Usage
- To run the hook, copy the example below.
- $members_template_pag_links = apply_filters( 'bp_get_group_member_pagination', $members_template_pag_links );
- if ( !empty( $members_template_pag_links ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_get_group_member_pagination callback
- function filter_bp_get_group_member_pagination( $members_template_pag_links ) {
- // make filter magic happen here...
- return $members_template_pag_links;
- };
- // add the filter
- add_filter( 'bp_get_group_member_pagination', 'filter_bp_get_group_member_pagination', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_get_group_member_pagination', 'filter_bp_get_group_member_pagination', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-groups/bp-groups-template.php
- return apply_filters( 'bp_get_group_member_pagination', $members_template->pag_links );