wpseek.com
A WordPress-centric search engine for devs and theme authors



file_mod_allowed › WordPress Filter Hooks

Since4.8.0
Deprecatedn/a
apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' )
Parameters: (2)
  • (bool) $file_mod_allowed Whether file modifications are allowed.
    Required: Yes
  • (string) $context The usage context.
    Required: Yes
Defined at:
Codex:

Filters whether file modifications are allowed.





Source

return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context );