Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_is_file_mod_allowed ›

Da4.8.0
Deprecaton/a
wp_is_file_mod_allowed ( $context )
Parametri:
  • (string) $context The usage context.
    Richiesto:
Ritorna:
  • (bool) True if file modification is allowed, false otherwise.
Definito a:
Codex:

Determines whether file modifications are allowed.



Sorgenti

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