bp_get_profile_group_name()

Return the XProfile group name.


Return Return

(string)


Source Source

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

	function bp_get_profile_group_name() {

		// Check action variable.
		$group_id = bp_action_variable( 1 );
		if ( empty( $group_id ) || ! is_numeric( $group_id ) ) {
			$group_id = 1;
		}

		// Check for cached group.
		$group = new BP_XProfile_Group( $group_id );

		/**
		 * Filters the profile group name.
		 *
		 * @since 1.0.0
		 * @since 2.6.0 Added the `$group_id` parameter
		 *
		 * @param string $name     Name of the profile group.
		 * @param int    $group_id ID of the profile group.
		 */
		return apply_filters( 'bp_get_profile_group_name', $group->name, $group_id );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.