Yoast\WP\SEO\Presenters\Twitter
Image_Presenter::get() public Yoast 1.0
Run the Twitter image value through the wpseo_twitter_image filter.
{} Это метод класса: Image_Presenter{}
Хуки из метода
Возвращает
Строку. The filtered Twitter image.
Использование
$Image_Presenter = new Image_Presenter(); $Image_Presenter->get();
Код Image_Presenter::get() Image Presenter::get Yoast 15.6.2
public function get() {
/**
* Filter: 'wpseo_twitter_image' - Allow changing the Twitter Card image.
*
* @param Indexable_Presentation $presentation The presentation of an indexable.
*
* @api string $twitter_image Image URL string.
*/
return (string) \apply_filters( 'wpseo_twitter_image', $this->presentation->twitter_image, $this->presentation );
}