Filters the flag that decides whether or not block editor scripts and styles are going to be enqueued on the current screen.
$is_block_editor_screen
Sortie :
@param bool $is_block_editor_screen Current value of the flag.
// 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;
}
Chargement des actualités...