Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove ’register link’ from admin bar


  • jakeyboy1989
    Member

    @jakeyboy1989

    I am using custom admin bar from wpmu dev and also the admin bar improved and it is almost perfect now, I just need one thing extra.

    I would like to know how I remove the ‘register’ link in the admin bar for non-logged in users?

    Basically I want to do this to force people to login with their Facebook, twitter, or google plus credentials through my login portal..

    I would also like to rename Login to Login/Register…

    Not sure if this is hidden in buddypress or wordpress as when I inspect the element it appears to state admin-bar-bp…

    the site is progressivetalks.com

    Any thoughts would be greatly appreciated!

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

  • @mercime
    Participant

    @mercime

    == I am using custom admin bar from wpmu dev ==
    Please contact wpmu dev for support or post at https://wordpress.org/tags/custom-admin-bar


    @ChrisClayton
    Participant

    @chrisclayton

    `function cc_admin_bar_links() {
    global $wp_admin_bar;
    //BE GONE DEMON!
    $wp_admin_bar->remove_menu(‘bp-register’);

    //AbraCaDabra! Once i wave my wand, you will become an Elephant!
    $wp_admin_bar->add_menu( array(
    ‘id’ => ‘bp-login’,
    ‘title’ => __( ‘Log in and register’, ‘buddypress’ ),
    ‘href’ => wp_login_url()
    ) );
    }
    //Wave Wand.
    add_action( ‘wp_before_admin_bar_render’, ‘cc_admin_bar_links’ );`

    SORRY! Don’t mind my lame humor within comments. Just remove them :)

    If this doesn’t work, you will need to contact wpmudev as they are probably doing something really weird :/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove ’register link’ from admin bar’ is closed to new replies.
Skip to toolbar