Hook for handling excluded page for login checking
-
Hi,
Is it possible to add a hook before performing redirect
wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );
I need to add a checking if the user is visiting specific page in WooCommerce that is allowed to be viewed without login.
I just modified the code below for the workaround:
Check if user is visiting order received page, then skip the checking.
if ( ! is_user_logged_in() && !is_order_received_page() && ( is_woocommerce() || is_cart() || is_checkout() ) ) {
Regards,
Venom
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Hook for handling excluded page for login checking’ is closed to new replies.