Yoast\WP\SEO\Presenters
Abstract_Indexable_Tag_Presenter::present()
Returns a tag in the head.
Метод класса: Abstract_Indexable_Tag_Presenter{}
Хуков нет.
Возвращает
Строку
. The tag.
Использование
$Abstract_Indexable_Tag_Presenter = new Abstract_Indexable_Tag_Presenter(); $Abstract_Indexable_Tag_Presenter->present();
Код Abstract_Indexable_Tag_Presenter::present() Abstract Indexable Tag Presenter::present Yoast 24.1
public function present() { $value = $this->get(); if ( ! \is_string( $value ) || $value === '' ) { return ''; } /** * There may be some classes that are derived from this class that do not use the $key property * in their $tag_format string. In that case the key property will simply not be used. */ return \sprintf( $this->tag_format, $this->escape_value( $value ), $this->key, \is_admin_bar_showing() ? ' class="yoast-seo-meta-tag"' : '' ); }