should_load_block_editor_scripts_and_styles

FILTER wp-includes\script-loader.php (ligne 2626) github
Filters the flag that decides whether or not block editor scripts and styles are going to be enqueued on the current screen.

Paramètres

Entrée :
$is_block_editor_screen
Sortie :
@param bool $is_block_editor_screen Current value of the flag.

Utilisation

// Modifier la valeur avec le filtre 'should_load_block_editor_scripts_and_styles'
add_filter('should_load_block_editor_scripts_and_styles', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($is_block_editor_screen) {
    // Modifier la valeur
    return $is_block_editor_screen;
}

Actualités

Chargement des actualités...