wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_is_file_mod_allowed › WordPress Function

Seit4.8.0
Veraltetn/v
wp_is_file_mod_allowed ( $context )
Parameter:
  • (string) $context The usage context.
    Erforderlich: Ja
Gibt zurück:
  • (bool) True if file modification is allowed, false otherwise.
Definiert in:
Codex:

Determines whether file modifications are allowed.



Quellcode

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 );
}