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