Home / APIs / _admin_search_query() – Displays the search query.

You appear to be a bot. Output may be restricted

Description

Displays the search query.

A simple wrapper to display the "s" parameter in a GET URI. This function should only be used when the_search_query() cannot.

Usage

_admin_search_query();

Parameters

Returns

void

Source

File name: wordpress/wp-admin/includes/template.php
Lines: 1 to 3 of 3

function _admin_search_query() {
  echo isset($_REQUEST['s']) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : '';
}
 

 View on GitHub View on Trac

Published: 12th March 2017 | Last updated: 12th March 2017

Information

Function name: _admin_search_query
Plugin ref: WordPress
Version: 5.0.3
Sourcefile: wp-admin/includes/template.php
File ref: wp-admin/includes/template.php
API type: private
Deprecated?: No
API Letters: _,A,Q,S

  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
WooCommerce a2z WooCommerce a2z
WooCommerce

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins