WooCommerce Code Reference

PublicAccess
in package

Marks a query or mutation as publicly accessible without authentication.

When present, the generated resolver skips all capability checks, allowing any user (including unauthenticated visitors) to execute the operation.

Mutually exclusive with #[RequiredCapability] on the same class.