wp_ajax_menu_quick_search()WP 3.1.0

Ajax handler for menu quick searching.

No Hooks.

Return

null. Nothing.

Usage

wp_ajax_menu_quick_search();

Changelog

Since 3.1.0 Introduced.

Код wp_ajax_menu_quick_search() WP 6.1.1

function wp_ajax_menu_quick_search() {
	if ( ! current_user_can( 'edit_theme_options' ) ) {
		wp_die( -1 );
	}

	require_once ABSPATH . 'wp-admin/includes/nav-menu.php';

	_wp_ajax_menu_quick_search( $_POST );

	wp_die();
}