get_search_query( bool $escaped = true )

Retrieves the contents of the search WordPress query variable.

25 related functions found for: get_search_query

Top ↑

Related terms found for this post

wp-parser-related-wordsgeneral-template-php, get, queri, query, search, wp-includes
wp-parser-packageTemplate, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • general-template-php
  • get
  • queri
  • query
  • search
  • Template
  • wp-includes
  • wp-includes/general-template.php
  • template

Top ↑

Description Description

The search query string is passed through esc_attr() to ensure that it is safe for placing in an html attribute.

Top ↑

Parameters Parameters


(bool) (Optional) Whether the result is escaped. Only use when you are later escaping it. Do not use unescaped.

Default value: true

Top ↑

Return Return


Top ↑

Source Source

File: wp-includes/general-template.php


Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.