BP_Members_Admin::filter_adminbar_profile_link( string $profile_link = '', string $url = '', int $user_id )

Filter the profile url.


Parameters Parameters

$profile_link

(string) (Optional) Profile Link for admin bar.

Default value: ''

$url

(string) (Optional) Profile URL.

Default value: ''

$user_id

(int) (Required) User ID.


Top ↑

Return Return

(string)


Source Source

File: bp-members/classes/class-bp-members-admin.php

	public function filter_adminbar_profile_link( $profile_link = '', $url = '', $user_id = 0 ) {
		if ( ! is_super_admin( $user_id ) && is_admin() ) {
			$profile_link = user_admin_url( 'profile.php' );
		}
		return $profile_link;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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