WordPress.org

Ready to get started?Download WordPress

Forums

logout link (7 posts)

  1. abedalraouf
    Member
    Posted 1 year 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 1 year ago #

    Try this:

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

  3. abedalraouf
    Member
    Posted 1 year ago #

    where should i make this editing?

  4. mokah
    Member
    Posted 1 year ago #

    Wherever you want the link.

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

  5. abedalraouf
    Member
    Posted 1 year ago #

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

  6. mokah
    Member
    Posted 1 year ago #

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

  7. abedalraouf
    Member
    Posted 1 year 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.