wphooks.info - file_mod_allowed

file_mod_allowed

*** New in v4.8 ***

The hook occurs in the following file:

wp-includes/load.php:
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
 */
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 );
}