bp_ps_unique_id( $id )

Check if BuddyBoss profile serach field id is unique.

Description

Source

File: bp-core/profile-search/bps-templates47.php

function bp_ps_unique_id( $id ) {
	static $k = array();

	$k[ $id ] = isset ( $k[ $id ] ) ? $k[ $id ] + 1 : 0;

	return $k[ $id ] ? $id . '_' . $k[ $id ] : $id;
}

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.