File "PublicAccess.php"

Full path: /home/sbkuplnl/public_html/wp-content/plugins/woocommerce/src/Api/Attributes/PublicAccess.php
File size: 0.47 KB (479 B bytes)
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Api\Attributes;

use Attribute;

/**
 * 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.
 */
#[Attribute( Attribute::TARGET_CLASS )]
final class PublicAccess {
}