Yoast\WP\SEO\Presenters\Open_Graph
Url_Presenter::get()
Run the url content through the wpseo_opengraph_url
Метод класса: Url_Presenter{}
Хуки из метода
Возвращает
Строку
. The filtered url.
Использование
$Url_Presenter = new Url_Presenter(); $Url_Presenter->get();
Код Url_Presenter::get() Url Presenter::get Yoast 24.4
public function get() { /** * Filter: 'wpseo_opengraph_url' - Allow changing the Yoast SEO generated open graph URL. * * @param string $url The open graph URL. * @param Indexable_Presentation $presentation The presentation of an indexable. */ return \urldecode( (string) \apply_filters( 'wpseo_opengraph_url', $this->presentation->open_graph_url, $this->presentation ) ); }