filtrod 5.6.0
should_load_block_editor_scripts_and_styles
Opis — z kodu źródłowego
Filters the flag that decides whether or not block editor scripts and styles are going to be enqueued on the current screen.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$is_block_editor_screen | bool | Current value of the flag. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'should_load_block_editor_scripts_and_styles', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'should_load_block_editor_scripts_and_styles', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii