Filters whether file modifications are allowed.
$file_mod_allowedbool
$contextstring
return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context );
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/file_mod_allowed