Filters whether file modifications are allowed.
! defined( 'DISALLOW_FILE_MODS'
Sortie :
@param bool $file_mod_allowed Whether file modifications are allowed. @param string $context The usage context.
// Modifier la valeur avec le filtre 'file_mod_allowed'
add_filter('file_mod_allowed', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(! defined( 'DISALLOW_FILE_MODS') {
// Modifier la valeur
return ! defined( 'DISALLOW_FILE_MODS';
}
Chargement des actualités...