• Resolved xtof_r

    (@xtof_r)


    Hi,
    Still a newbie with integrating php in WP… but do you think it could be possible to create a button with this instruction :

    echo wp_logout_url( home_url() );

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Maeve Lander

    (@enigmaweb)

    No it would not be possible paste this php as the button link.

    To understand why, have a quick look at the where the link ends up by inspecting the button element in your element inspector. Now imagine if instead of the URL, your php was there…. And I think you can see why this would not work 😉

Viewing 1 replies (of 1 total)

The topic ‘create a “Logout” button’ is closed to new replies.