Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Change Login & Register Links in Admin Bar

@webplayer

Participant

I am not a coder, but I’m looking for a snippet that can do this:

Add Function: Change Admin Bar Login and Register Links

if user is logged out

Remove WordPress/buddypress admin bar Login and Register links

Add New Login and Register Links

New Login Link: <a data-reveal-id="tmpl_reg_login_container" href="javascript:void(0);" onclick="tmpl_login_frm();">New Login Link</a>

New Register Link: <a data-reveal-id="tmpl_reg_login_container" href="javascript:void(0);" onclick="tmpl_registretion_frm();">New Register Link</a>

if user is logged in don't do any of the above (i.e.) show their buddypress username and hide register links, etc...

Does anyone know how to make this happen in code that I can drop into functions.php or bp-custom.php

Skip to toolbar