Yoast\WP\SEO\Presenters\Admin

Indexing_Error_Presenter::present()publicYoast 1.0

Presents the error message to show if SEO optimization failed.

The error message varies based on whether WordPress SEO Premium has a valid, activated subscription or not.

Метод класса: Indexing_Error_Presenter{}

Хуков нет.

Возвращает

Строку. The error message to show.

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

$Indexing_Error_Presenter = new Indexing_Error_Presenter();
$Indexing_Error_Presenter->present();

Код Indexing_Error_Presenter::present() Yoast 24.0

public function present() {
	$is_premium                     = $this->product_helper->is_premium();
	$has_valid_premium_subscription = $this->addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG );

	$output  = '<p>' . $this->generate_first_paragraph( $is_premium, $has_valid_premium_subscription ) . '</p>';
	$output .= '<p>' . $this->generate_second_paragraph( $is_premium, $has_valid_premium_subscription ) . '</p>';

	return $output;
}