On this page
apply_filters( 'file_mod_allowed', bool $file_mod_allowed, string $context )
Filters whether file modifications are allowed.
Parameters
$file_mod_allowedbool-
Whether file modifications are allowed.
$contextstring-
The usage context.
Source
File: wp-includes/load.php. View all references
return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context );
Related
Used By
| Used By | Description |
|---|---|
| wp_is_file_mod_allowed() wp-includes/load.php | Determines whether file modifications are allowed. |
Changelog
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/file_mod_allowed