How to create custom wordpress logout button(wp_logout_url) in wordpress?

custom wordpress logout button(wp_logout_url) in wordpress

  • <a class="colorbox" href=””>Logout
  • Or
    <li class="signOut"><?php wp_logout(); ?></li>

    add_action( 'wp_logout', 'auto_redirect_external_after_logout');
    function auto_redirect_external_after_logout(){
    wp_redirect
    ( 'http://redirect-url' );
    exit();
    }



    The post How to create custom wordpress logout button(wp_logout_url) in wordpress? appeared first on wpcodekit.

    Leave a Reply

    Your email address will not be published. Required fields are marked *