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