WP HOOKS
filtrod 5.8.0

use_widgets_block_editor

Args 1Plik wp-includes/widgets.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether to use the block editor to manage widgets.

Parametry

ParametrTypOpis
$use_widgets_block_editorboolWhether to use the block editor to manage widgets.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'use_widgets_block_editor', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii