Yoast\WP\SEO\Presenters\Debug
Marker_Open_Presenter::present()
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() Marker Open Presenter::present Yoast 24.1
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 ); }