wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_is_file_mod_allowed › WordPress Function

Depuis4.8.0
Dépréciéen/a
wp_is_file_mod_allowed ( $context )
Paramètres:
  • (string) $context The usage context.
    Requis: Oui
Retourne:
  • (bool) True if file modification is allowed, false otherwise.
Défini(e) dans:
Codex:

Determines whether file modifications are allowed.



Source

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