wpseek.com
WordPress开发者和主题制作者的搜索引擎



file_mod_allowed › WordPress过滤钩子

Since4.8.0
已弃用n/a
apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' )
参数: (2)
  • (bool) $file_mod_allowed Whether file modifications are allowed.
    Required: Yes
  • (string) $context The usage context.
    Required: Yes
定义在:
文档:

Filters whether file modifications are allowed.





源码

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