Yoast\WP\SEO\Presenters\Debug

Marker_Open_Presenter::presentpublicYoast 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 27.3

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 '';
	}
	$product_name = \esc_html( $this->helpers->product->get_name() );
	$is_premium   = $this->helpers->product->is_premium();

	$version = ( $is_premium ) ? $this->construct_version_info() : 'v' . \WPSEO_VERSION;

	$url = ( $is_premium ) ? 'https://yoast.com/product/yoast-seo-premium-wordpress/' : 'https://yoast.com/product/yoast-seo-wordpress/';

	return \sprintf(
		'<!-- This site is optimized with the %1$s %2$s - %3$s -->',
		$product_name,
		$version,
		$url,
	);
}