WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Presentations

Indexable_Search_Result_Page_Presentation::generate_open_graph_url() public Yoast 1.0

Generates the Open Graph URL.

{} Это метод класса: Indexable_Search_Result_Page_Presentation{}

Хуков нет.

Возвращает

Строку. The Open Graph URL.

Использование

$Indexable_Search_Result_Page_Presentation = new Indexable_Search_Result_Page_Presentation();
$Indexable_Search_Result_Page_Presentation->generate_open_graph_url();

Код Indexable_Search_Result_Page_Presentation::generate_open_graph_url() Yoast 15.6.2

<?php
public function generate_open_graph_url() {
	$search_query = \get_search_query();

	// Regex catches case when /search/page/N without search term is itself mistaken for search term.
	if ( ! empty( $search_query ) && ! \preg_match( '|^page/\d+$|', $search_query ) ) {
		return \get_search_link();
	}

	return '';
}