Redirect to member pages – wpadminbar
-
Hi, I have added new menu items to the wpadminbar
-friends for example
As you can see below ‘http://homeworkinterconnected.com/friends’, is the url for this new menu item but I am not taken to members/friends even when logged in.
How can I redirect my pages so that when logged in I am directed to my member pages?
—-// Add new menu item
$args = array(
‘id’ => ‘Friends’,
‘title’ => ‘Friends’,
‘href’ => ‘http://homeworkinterconnected.com/friends’,‘meta’ => array(
‘class’ => ‘wpbeginner-guides’,
‘title’ => ‘Friends’
)
);
$wp_admin_bar->add_node($args);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Redirect to member pages – wpadminbar’ is closed to new replies.