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