Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Add this snippet to your site –

    add_action('template_redirect', function( $template ) {
    	if( function_exists( 'wcfmmp_is_store_page' ) && wcfmmp_is_store_page() ) {
    		wp_safe_redirect( get_permalink( wc_get_page_id( 'shop' ) ) );
    	}
    	return $template;
    }, 100 );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin – https://wordpress.org/plugins/code-snippets/

    Thread Starter karolin2226

    (@karolin2226)

    Hello,
    We tried this code, and it did the redirection, but it is not the URL we need.
    What we need is to redirect to the author’s archive page. How can we do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can we disable storefront?’ is closed to new replies.