bp_social_network_search_key( $id,  $array )

Search the key for given value from the social networks provider.

Description

Parameters

$id

(Required)

$array

(Required)

Return

(int|string|null)

Source

File: bp-xprofile/bp-xprofile-filters.php

function bp_social_network_search_key( $id, $array ) {
	foreach ($array as $key => $val) {
		if ($val->value === $id) {
			return $key;
		}
	}
	return null;
}

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.