amp_validation_error_default_sanitized

apply_filters( 'amp_validation_error_default_sanitized',  bool $accepted,  array|null $error )

Description #

Filters whether sanitization is accepted for a newly-encountered validation error .

This only applies to validation errors that have not been encountered before. To override the sanitization status of existing validation errors, use the amp_validation_error_sanitized filter.

See also

  • {@see AMP_Validation_Error_Taxonomy::get_validation_error_sanitization()}

Parameters #

$accepted

Default accepted.

$error

Validation error. May be null when asking if accepting sanitization is enabled by default.



Changelog #

Changelog
Version Description
1.4 Introduced.