• Resolved robgol2023

    (@robgol2023)


    Hello. If I am logged out the Shop page displays correctly the ‘create account’ page but once I login, I tried to redirect to the page Shop but it doesn’t show on the options in WP for Logged In Menu to redirect after. And, the Shop page keeps pointing to the My Account page

    • This topic was modified 1 year, 3 months ago by robgol2023.
    • This topic was modified 1 year, 3 months ago by robgol2023.
    • This topic was modified 1 year, 3 months ago by robgol2023.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Ramon Ahnert

    (@rahmohn)

    Hi @robgol2023

    ?You can use the filter?wflu_redirect_after_login_page_url?to bypass the setting and add your custom logic.

    Example (you can add it to the functions.php file of your theme):

    add_filter(
    	'wflu_redirect_after_login_page_url',
    	function( $redirect_to ) {
    		$shop_page_link = get_permalink( wc_get_page_id( 'shop' ) );
    
    		if ( empty( $shop_page_link ) ) {
    			return $redirect_to;
    		}
    
    		return $shop_page_link;
    	}
    );
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to page Shop not working’ is closed to new replies.