WP HOOKS
filtrod 3.0.0

nav_menu_meta_box_object

Args 1Plik wp-admin/includes/nav-menu.phpDokumentacja WP ↗

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

ParametrTypOpis
$post_type\WP_Post_Type | falseThe 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
}

Popularne w tej kategorii