WP HOOKS
filtrod 5.7.0

block_type_metadata_settings

Args 2Plik wp-includes/blocks.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the settings determined from the block type metadata.

Parametry

ParametrTypOpis
$settingsarrayArray of determined settings for registering a block type.
$metadataarrayMetadata provided for registering a block type.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'block_type_metadata_settings', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii