Есть в файлике wc-template-functions.php функция редиректов. Вот такая:
Как удалить кусок функции?
PHP:
/**
* Handle redirects before content is output - hooked into template_redirect so is_page works.
*/
function wc_template_redirect() {
global $wp_query, $wp;
// When default permalinks are enabled, redirect shop page to post type archive url
if ( ! empty( $_GET['page_id'] ) && '' === get_option( 'permalink_structure' ) && $_GET['page_id'] == wc_get_page_id( 'shop' ) ) {
wp_safe_redirect(...