wp_ajax_menu_quick_search() WordPress Function

The wp_ajax_menu_quick_search() function is used to search for a menu item in the WordPress admin menu. It is used to search for a menu item by its title, slug, or CSS class.

wp_ajax_menu_quick_search() #

Ajax handler for menu quick searching.


Source

File: wp-admin/includes/ajax-actions.php

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();
}


Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More