Support » Plugins and Hacks » Where is wp_meta function defined?
9 years, 7 months ago
I’d like to change the links that <?php wp_meta(); ?> shows in the sidebar after you login in wordpress.
By default it shows two links;
Site admin (a link to /wordpress/wp-admin/)
Logout (a link to /wordpress/wp-login.php?action=logout)
I’d like to change the Site Admin link to another page for every user but the administrator.
Where is wp_meta function defined?
Nevermind, it is in /wp-includes/general-template.php -> line 54
I knew that, but didnt want to point it out since youre doing that assbackwards. The smart way to do what you want to do is to use an if/else statement inside your theme.
“The smart way to do what you want to do is to use an if/else statement inside your theme.”
-> could you please explain further? 🙂 I can’t figure it out
What I’m trying to change is the “site admin” link in this way;
if admin logged in then link to /wordpress/wp-admin/
else link to /wordpress/bbpress/profile.php?id=1 (I’d need too add the user id to the /bbpress/profile.php link)