Yoast\WP\SEO\Presenters\Debug

Marker_Open_Presenter::present()publicYoast 1.0

Returns the debug close marker.

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

Хуки из метода

Возвращает

Строку. The debug close marker.

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

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

Код Marker_Open_Presenter::present() Yoast 22.4

public function present() {
	/**
	 * Filter: 'wpseo_debug_markers' - Allow disabling the debug markers.
	 *
	 * @param bool $show_markers True when the debug markers should be shown.
	 */
	if ( ! \apply_filters( 'wpseo_debug_markers', true ) ) {
		return '';
	}
	$version_info = 'v' . \WPSEO_VERSION;

	if ( $this->helpers->product->is_premium() ) {
		$version_info = $this->construct_version_info();
	}

	return \sprintf(
		'<!-- This site is optimized with the %1$s %2$s - https://yoast.com/wordpress/plugins/seo/ -->',
		\esc_html( $this->helpers->product->get_name() ),
		$version_info
	);
}