• Resolved Schalk Joubert

    (@schalkjoubert)


    I added a custom logout link( for good reason I had to remove the default one )
    This code always work in conjunction with your plugin, but not since recent updates:

    Any advice please.
    Thank you

    function custom_toolbar_link($wp_admin_bar) {
    $args = array(
    'id' => 'Logout',
    'title' => 'Logout', 
    'href' => wp_logout_url(),
    'meta' => array(
    'class' => 'tsum-logout', 
    'title' => 'Logouts'
    ));
    $wp_admin_bar->add_node($args);
    }
    add_action('admin_bar_menu', 'custom_toolbar_link', 999);
Viewing 1 replies (of 1 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    Hello,

    There is no reason, have you done a test to disable wps-hide-login and see if your code works?

Viewing 1 replies (of 1 total)
  • The topic ‘Custom logout link error’ is closed to new replies.