isWooCommerceActive() ) { return false; } if ( ! is_admin() && ! aioseo404To301()->helpers->isAjaxCronRestRequest() && function_exists( 'is_shop' ) ) { return is_shop(); } // phpcs:ignore WordPress.Security.NonceVerification.Recommended, HM.Security.NonceVerification.Recommended $id = ! $id && ! empty( $_GET['post'] ) ? absint( wp_unslash( $_GET['post'] ) ) : (int) $id; return $id && wc_get_page_id( 'shop' ) === $id; } }