Deprecated

This method has been deprecated.

AnsPress_Profile_Hooks::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/free/profile.php

	public static 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