• Resolved Webfolio Webdesign

    (@webreneszansz)


    Hi,

    Please be so kind and let me know, what is the url of the logout action or page?

    I would like to add also conditional logout option to the menu, to make transparent the all time logged in / logged out statuses for the visitors.

    (I have plugin for the conditional logic setup now).

    Thank you very much!

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @webreneszansz

    Paid Memberships Pro does not set a specific logout URL, it uses the default WordPress logout action which would be something like https://boastmagazine.co.uk/wp-login.php?loggedout=true

    You may call the following function – https://developer.wordpress.org/reference/functions/wp_logout_url/

    I hope this helps get you started. If you need further assistance, please reach out to a local WordPress developer.

    Thread Starter Webfolio Webdesign

    (@webreneszansz)

    Hi

    Thank you very much! It works!

    Is there any redirection possibility after logout?

    Currently, the system redirect to the standard wordpress login page, which is not properly (content and design) for the membership subscriber.

    Thank you very much!

    Plugin Author Andrew Lima

    (@andrewza)

    Here is a gist that was previously created to redirect users when logging out – https://gist.github.com/andrewlimaza/3bc8a41feed5de1cf2a482e23069e923

    Thread Starter Webfolio Webdesign

    (@webreneszansz)

    Hi,

    Thank you very much!

    Meantime I also checked the other link, I mean, this code can use another url for redirection. It would be better instead of the homepage.

    Can you please let me know, what part of this code should I rewrite, before I add it to the functions-php?

    Thank you very much!

    Plugin Author Andrew Lima

    (@andrewza)

    You would need to change line 7 of the gist and replace home_url() with your dedicated URL.

    I hope this helps get you started.

    Thread Starter Webfolio Webdesign

    (@webreneszansz)

    Hi,

    Thank you very much!

    Would you be so kind as to show me a complete example for this row with any concrete domain, how should I replace the text? I mean, with or witout quotation mark…

    I tied something, but it resulted fatal error on the website.

    Thank you very much!

    Plugin Author Andrew Lima

    (@andrewza)

    It would be something like:

    wp_redirect( 'https://mywebsite.com/some-url' );

    I hope this helps get you started, if you need further assistance I recommend reaching out to a local WordPress developer.

    Thread Starter Webfolio Webdesign

    (@webreneszansz)

    Hi,
    I treid also exactly this, but it resulr error on the website.

    I also checked 6 plugins for this, but in vain.

    Thank you anyway.

    Plugin Author Andrew Lima

    (@andrewza)

    We’d need more specific information to debug this code, as I’ve implemented this on my end and it works as intended.

    I recommend reaching out to a local WordPress developer for assistance in adjusting this for your site or reach out to our support team via http://www.paidmembershipspro.com as our support on WordPress.org doesn’t cover troubleshooting customizations.

    Thank you for understanding.

    Thread Starter Webfolio Webdesign

    (@webreneszansz)

    Hi,

    I am able to these codes to finction.php, but the codes resulted 403, forbidden error message.

    In case of the 6 related plugins, the setup simple doesn’t work, I receive always the standard logout page.

    Thank you anyway.

    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for the feedback and understanding. A 403 error usually indicates that URL is forbidden and isn’t a code related issue.

    I recommend reaching out to your hosting provider or a local WordPress developer for assistance with this.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Logout url’ is closed to new replies.