bp_get_current_profile_group_id()

Return the current profile group ID.


Return Return

(int)


Source Source

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

	function bp_get_current_profile_group_id() {
		$profile_group_id = bp_action_variable( 1 );
		if ( empty( $profile_group_id ) ) {
			$profile_group_id = 1;
		}

		/**
		 * Filters the current profile group ID.
		 *
		 * Possible values are admin/profile/edit/[group-id].
		 *
		 * @since 1.1.0
		 *
		 * @param int $profile_group_id Current profile group ID.
		 */
		return (int) apply_filters( 'bp_get_current_profile_group_id', $profile_group_id );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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