filtrod 5.0.0
filter_block_editor_meta_boxes
Opis — z kodu źródłowego
Fires right before the meta boxes are rendered.
This allows for the filtering of meta box data, that should already be present by this point. Do not use as a means of adding meta box data.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$wp_meta_boxes | array | Global meta box state. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'filter_block_editor_meta_boxes', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'filter_block_editor_meta_boxes', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii