get_search_query

Advertisement

Summery Summery

Retrieves the contents of the search WordPress query variable.

Syntax Syntax

get_search_query( bool $escaped = true )

Description Description

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

Parameters Parameters

$escaped

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

Default value: true

Return Return

(string)

Source Source

File: wp-includes/general-template.php

				'matchBrackets'     => true,
			)
		);
		if ( 'application/ld+json' === $type ) {
			$settings['codemirror']['mode']['jsonld'] = true;
		} else {
			$settings['codemirror']['mode']['json'] = true;
		}
	} elseif ( false !== strpos( $type, 'jsx' ) ) {
		$settings['codemirror'] = array_merge(
			$settings['codemirror'],
			array(
				'mode'              => 'jsx',
				'autoCloseBrackets' => true,
				'matchBrackets'     => true,

Advertisement

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Advertisement

Leave a Reply