Yoast\WP\SEO\Presenters
Meta_Description_Presenter::present() public Yoast 1.0
Returns the meta description for a post.
{} Это метод класса: Meta_Description_Presenter{}
Хуков нет.
Возвращает
Строку. The meta description tag.
Использование
$Meta_Description_Presenter = new Meta_Description_Presenter(); $Meta_Description_Presenter->present();
Код Meta_Description_Presenter::present() Meta Description Presenter::present Yoast 15.6.2
public function present() {
$output = parent::present();
if ( ! empty( $output ) ) {
return $output;
}
if ( \current_user_can( 'wpseo_manage_options' ) ) {
return '<!-- ' .
\sprintf(
/* Translators: %1$s resolves to the SEO menu item, %2$s resolves to the Search Appearance submenu item. */
\esc_html__( 'Admin only notice: this page does not show a meta description because it does not have one, either write it for this page specifically or go into the [%1$s - %2$s] menu and set up a template.', 'wordpress-seo' ),
\esc_html__( 'SEO', 'wordpress-seo' ),
\esc_html__( 'Search Appearance', 'wordpress-seo' )
) .
' -->';
}
return '';
}