wpseo_json_ld_search_url, $this->context->site_url . ?s={search_term_string}

wpseo_json_ld_search_url, $this->context->site_url . ?s={search_term_string}

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.28.1

apply_filters('wpseo_json_ld_search_url, $this->context->site_url . ?s={search_term_string}') is found 1 times:

  • /src/generators/schema/website.php line 85
    		 * Filter: 'wpseo_json_ld_search_url' - Allows filtering of the search URL for Yoast SEO.
    		 *
    		 * @param string $search_url The search URL for this site with a `{search_term_string}` variable.
    		 */
    		$search_url = \apply_filters( 'wpseo_json_ld_search_url', $this->context->site_url . '?s={search_term_string}' );
    
    		$data['potentialAction'][] = [
    			'@type'       => 'SearchAction',
    			'target'      => [
    				'@type'       => 'EntryPoint',
    				'urlTemplate' => $search_url,