Your cart is currently empty!
Log Out button redirect
—
by
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 ”;
}
}
Posted in Affiliates Pro
Comments
One response to “Log Out button redirect”
Hi,
you can use Peter’s Login Redirect plugin.
cheers