jeudi 5 février 2015

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:. Does anyone have any suggestions?





Aucun commentaire:

Enregistrer un commentaire