WordPress at a glance
filter is not described

file_mod_allowed filter-hook . WP 4.8.0

Filters whether file modifications are allowed.


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;
Whether file modifications are allowed.
The usage context.

Where the hook is called

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.