Deprecated

This method has been deprecated.

Profile::menu_link( string $url, object $item )

Description #

Filter user menu links.

Parameters #

  • $url
    string (Required) Menu url.
  • $item
    object (Required) Menu item object.

Changelog #

VersionDescription
4.1.2Introduced.

Source #

File: addons/profile/profile.php

	public function menu_link( $url, $item ) {
		if ( 'user' === $item->object ) {
			$url = ap_user_link( get_current_user_id() );
		}

		return $url;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment