bp_member_type_shortcode_filter( $query_string,  $object )

Adds a filter on shortcode.

Description

Parameters

$query_string

(Required)

$object

(Required)

Return

(string)

Source

File: bp-core/deprecated/buddyboss/1.2.9.php

function bp_member_type_shortcode_filter( $query_string, $object ){

	if ( empty( $object ) )
		return '';

	if ( 'members' == $object && bp_current_component() !== 'members' ) {
		$_COOKIE['bp-members-filter'] = 'alphabetical';
		$_COOKIE['bp-members-scope'] = 'all';
	}

	return $query_string;
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.