filtrod 3.0.0
nav_menu_meta_box_object
Opis — z kodu źródłowego
Filters whether a menu items meta box will be added for the current object type.
If a falsey value is returned instead of an object, the menu items meta box for the current meta box object will not be added.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_type | \WP_Post_Type | false | The current object to add a menu items meta box for. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'nav_menu_meta_box_object', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'nav_menu_meta_box_object', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii