Yoast\WP\SEO\Presenters\Webmaster

Google_Presenter{}Yoast 1.0

Presenter class for the Google Search Console verification setting.

Хуков нет.

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

$Google_Presenter = new Google_Presenter();
// use class methods

Методы

  1. public get()

Код Google_Presenter{} Yoast 19.10

class Google_Presenter extends Abstract_Indexable_Tag_Presenter {

	/**
	 * The tag key name.
	 *
	 * @var string
	 */
	protected $key = 'google-site-verification';

	/**
	 * Retrieves the webmaster tool site verification value from the settings.
	 *
	 * @return string The webmaster tool site verification value.
	 */
	public function get() {
		return $this->helpers->options->get( 'googleverify', '' );
	}
}