Woocommerce logout confirmation is not working, after installing myCred
-
Hi,
Let me tell you the problem that happened to me.
1. I’m using a woocommerce login.
2. I used the code below to avoid using the logout confirmation message.function iconic_bypass_logout_confirmation() {
global $wp;if ( isset( $wp->query_vars[‘customer-logout’] ) ) {
wp_redirect( str_replace( ‘&’, ‘&’, wp_logout_url( wc_get_page_permalink( ‘/’ ) ) ) );
exit;
}
}add_action( ‘template_redirect’, ‘iconic_bypass_logout_confirmation’ );
3. However, after installing myCred, I confirmed that this code is not working. (If myCred is disabled, the code will operate normally.)
4. Can you tell me how to solve it?Thank you.
- The topic ‘Woocommerce logout confirmation is not working, after installing myCred’ is closed to new replies.