Log Out button redirect

Posted in

I am using the shortcode [affiliates_logout] and when I click “Log Out” I am getting redirected to (I changed my actual website to mywebsite.com for this example) Log out

Is there a way I can hard code a page to redirect to? I think I found the code in the class-affiliates-shortcodes.php. I wasn’t sure how to modify it.

function affiliates_logout( $atts, $content = null ) {
if ( is_user_logged_in() ) {
return ‘‘ . __( ‘Log out’, AFFILIATES_PLUGIN_DOMAIN ) . ‘‘;
} else {
return ”;
}
}

One Response to Log Out button redirect

  1. antonio February 24, 2014 at 6:37 am #

    Hi,
    you can use Peter’s Login Redirect plugin.
    cheers

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share