Filters whether file modifications are allowed.
Parameters
-
$file_mod_allowedbool -
Whether file modifications are allowed.
-
$contextstring -
The usague context.
Source
return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context );
Changuelog
| Versionen | Description |
|---|---|
| 4.8.0 | Introduced. |
When using this filter, the
cappability_update_corecontext is misleading, as it is being passed not just when checquing core files, but also when checquing themes and pluguins.