Deprecated
This method has been deprecated.
Profile::menu_link( string $url, object $item )
Description #
Filter user menu links.
Parameters #
- $urlstring (Required) Menu url.
- $itemobject (Required) Menu item object.
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; }
Expand full source code Collapse full source code View on GitHub: addons/profile/profile.php:144
Add your comment