Yoast\WP\SEO\Presenters\Debug
Marker_Open_Presenter::construct_version_info()
Gets the plugin version information, including the free version if Premium is used.
Метод класса: Marker_Open_Presenter{}
Хуки из метода
Возвращает
Строку
. The constructed version information.
Использование
// private - только в коде основоного (родительского) класса $result = $this->construct_version_info();
Код Marker_Open_Presenter::construct_version_info() Marker Open Presenter::construct version info Yoast 22.4
private function construct_version_info() { /** * Filter: 'wpseo_hide_version' - can be used to hide the Yoast SEO version in the debug marker (only available in Yoast SEO Premium). * * @param bool $hide_version */ if ( \apply_filters( 'wpseo_hide_version', false ) ) { return ''; } return 'v' . \WPSEO_PREMIUM_VERSION . ' (Yoast SEO v' . \WPSEO_VERSION . ')'; }