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



wp_is_file_mod_allowed › WordPress Function

Since4.8.0
已弃用n/a
wp_is_file_mod_allowed ( $context )
参数:
  • (string) $context The usage context.
    Required: Yes
返回:
  • (bool) True if file modification is allowed, false otherwise.
定义在:
文档:

Determines whether file modifications are allowed.



源码

function wp_is_file_mod_allowed( $context ) {
	/**
	 * Filters whether file modifications are allowed.
	 *
	 * @since 4.8.0
	 *
	 * @param bool   $file_mod_allowed Whether file modifications are allowed.
	 * @param string $context          The usage context.
	 */
	return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context );
}