filtrod 5.7.0
block_type_metadata_settings
Opis — z kodu źródłowego
Filters the settings determined from the block type metadata.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$settings | array | Array of determined settings for registering a block type. |
$metadata | array | Metadata 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
}
// 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