Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

woocommerce redirect shop page

// Redirect WooCommerce Shop URL
function wpc_shop_url_redirect() {
    if( is_shop() ){
        wp_redirect( home_url( '/custom-page/' ) ); // Assign custom internal page here
        exit();
    }
}
add_action( 'template_redirect', 'wpc_shop_url_redirect' );
Source by wpcodeus.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #redirect #shop #page
ADD COMMENT
Topic
Name
4+3 =