WordPress at a glance
filter is not described

file_mod_allowed filter-hook . WP 4.8.0

Filters whether file modifications are allowed.

Usage

add_filter( 'file_mod_allowed', 'filter_function_name_3992', 10, 2 );
function filter_function_name_3992( $file_mod_allowed, $context ){
	// filter...

	return $file_mod_allowed;
}
$file_mod_allowed(true/false)
Whether file modifications are allowed.
$context(string)
The usage context.

Where the hook is called

wp_is_file_mod_allowed()
wp-includes/load.php 1124
return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context );

Where the hook is used (in WP core)

Does not used.