_admin_search_query

Displays the search query.

Description

_admin_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

  1. if ( !function_exists( '_admin_search_query' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _admin_search_query(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/template.php  
  1. function _admin_search_query() { 
  2. echo isset($_REQUEST['s']) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : '';