WP HOOKS
filtrod 5.6.0

should_load_block_editor_scripts_and_styles

Args 1Plik wp-includes/script-loader.phpDokumentacja WP ↗

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

ParametrTypOpis
$is_block_editor_screenboolCurrent 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
}

Popularne w tej kategorii