file_mod_allowed

过滤钩子


apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' )
参数
  • (bool)
    $file_mod_allowed
    Whether file modifications are allowed.
    Required:
  • (string)
    $context
    The usage context.
    Required:
定义位置
  • wp-includes/load.php
    , line 1622
引入
4.8.0
弃用

Filters whether file modifications are allowed.

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