WordPress.org

Forums

logout link (7 posts)

  1. abedalraouf
    Member
    Posted 2 years ago #

    hello, could any one help me how if i need to make the logout link to redirect the user to my home page ?

  2. mokah
    Member
    Posted 2 years ago #

    Try this:

    <a href="<?php echo wp_logout_url('$index.php'); ?>">Log out</a>

  3. abedalraouf
    Member
    Posted 2 years ago #

    where should i make this editing?

  4. mokah
    Member
    Posted 2 years ago #

    Wherever you want the link.

    Are you talking about the logout link already on the admin page?

  5. abedalraouf
    Member
    Posted 2 years ago #

    it's a link in the top of the page when the user logged in.

  6. mokah
    Member
    Posted 2 years ago #

    Oh, cool. There's a free plugin that does this.

  7. abedalraouf
    Member
    Posted 2 years ago #

    i just tried it, the plugin make the logout button redirect me to free page (white) instead of login page, but what iam search about is to redirect me to home page. ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.