_admin_search_query()
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.
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Return
null
. Nothing (null).
Usage
_admin_search_query();
Changelog
Since 2.7.0 | Introduced. |
_admin_search_query() admin search query code WP 6.5.2
function _admin_search_query() { echo isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : ''; }