_admin_search_query

Advertisement

Summery Summery

Displays the search query.

Syntax Syntax

_admin_search_query()

Description Description

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

Source Source

File: wp-admin/includes/template.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply