Automattic\WooCommerce\Vendor\GraphQL\Validator

DocumentValidator::removeRulepublic staticWC 1.0

Remove rule from list of global validation rules.

Method of the class: DocumentValidator{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = DocumentValidator::removeRule( $rule ): void;
$rule(ValidationRule) (required)
.

DocumentValidator::removeRule() code WC 10.9.1

public static function removeRule(ValidationRule $rule): void
{
    unset(self::$rules[$rule->getName()]);
}