Current User In Custom Menu Item URL
I'm using S2Member + Buddypress on a compatible template. I have 8 menu items and am using the "Menu Items Visibility Control" to limit the 7th for view only to
current_user_is(s2member_level1) | in_array('administrator', $GLOBALS['current_user']-roles)
This visibility is working correctly.
I'm in need of a way to create a custom menu item that will link to a page containing the following structure:
http://localhost/%%current_user_nicename%%/events/my-events/?action=edit
I don't know how to incorporate the current user name into the URL. I've come across this post:.
*There must be an easy fix, if I leave a custom menu item's URL blank..can I specify the url elsewhere in my code?
Topic s2member buddypress menus Wordpress
Category Web