deprecated_file_trigger_error WordPress Filter Hook
The deprecated_file_trigger_error() function is used to trigger an error when a deprecated file is accessed. This function can be used to help debug your code and ensure that you are using the most up-to-date files.
apply_filters( 'deprecated_file_trigger_error', bool $trigger ) #
Filters whether to trigger an error for deprecated files.
Parameters
- $trigger
(bool)Whether to trigger the error for deprecated files. Default true.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |