filtrod 3.3.0
hidden_meta_boxes
Opis — z kodu źródłowego
Filters the list of hidden meta boxes.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$hidden | string[] | An array of IDs of hidden meta boxes. |
$screen | \WP_Screen | WP_Screen object of the current screen. |
$use_defaults | bool | Whether to show the default meta boxes. Default true. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'hidden_meta_boxes', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'hidden_meta_boxes', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii