file_mod_allowed WordPress Filter Hook
The file_mod_allowed hook allows you to modify the list of files that are allowed to be modified by WordPress. This can be useful if you want to add or remove files from the list.
apply_filters( 'file_mod_allowed', bool $file_mod_allowed , string $context ) #
Filters whether file modifications are allowed.
Parameters
- $file_mod_allowed
(bool)Whether file modifications are allowed.
- $context
(string)The usage context.
Source
File: wp-includes/load.php
Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |