Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #414755
    #415449

    Hey annameis!

    Maybe this function will work for you, https://codex.wordpress.org/Function_Reference/wp_loginout.

    You could try using a plugin such as this, https://wordpress.org/plugins/exec-php/, to allow executing PHP in the dashboard.

    Regards,
    Elliott

    #419455
    This reply has been marked as private.
    #420188

    Hey!

    You can’t use php codes inside the Extra Elements box. Add it in the functions.php file: Add something like this:

    add_action('ava_inside_main_menu', 'ava_inside_main_menu_mod');
    function ava_inside_main_menu_mod() {
    wp_loginout( site_url() );
    }

    Regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.