wp_is_file_mod_allowed() – Determines whether file modifications are allowed.

You appear to be a bot. Output may be restricted

Description

Determines whether file modifications are allowed.

Usage

$bool = wp_is_file_mod_allowed( $context );

Parameters

$context
( string ) required – The usage context.

Returns

bool True if file modification is allowed, false otherwise.

Source

File name: wordpress/wp-includes/load.php
Lines:

1 to 11 of 11
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 );
}
 

 View on GitHub View on Trac