WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
класс не описан

WPSEO_GSC{} Yoast 1.0

Class WPSEO_GSC.

Хуков нет.

Возвращает

Null. Ничего.

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

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

Методы

  1. display()
  2. register_hooks()
  3. register_gsc_notification()
  4. register_settings()
  5. display_table()
  6. page_scripts()
  7. set_screen_option( $status, $option, $value )
  8. set_help()

Код WPSEO_GSC{} Yoast 15.1.1

<?php
class WPSEO_GSC implements WPSEO_WordPress_Integration {

	/**
	 * The option where data will be stored.
	 *
	 * @var string
	 */
	const OPTION_WPSEO_GSC = 'wpseo-gsc';

	/**
	 * Outputs the HTML for the redirect page.
	 *
	 * @return void
	 */
	public function display() {
		require_once WPSEO_PATH . 'admin/google_search_console/views/gsc-display.php';
	}

	/**
	 * Registers the hooks.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @return void
	 */
	public function register_hooks() {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}

	/**
	 * Handles the dashboard notification.
	 *
	 * If the Google Search Console has no credentials, show a notification
	 * for the user to give them a heads up. This message is dismissable.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @return void
	 */
	public function register_gsc_notification() {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}

	/**
	 * Makes sure the settings will be registered, so data can be stored.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @return void
	 */
	public function register_settings() {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}

	/**
	 * Displays the table.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @return void
	 */
	public function display_table() {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}

	/**
	 * Loads the admin redirects scripts.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @return void
	 */
	public function page_scripts() {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}

	/**
	 * Sets the screen options.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @param string $status Status string.
	 * @param string $option Option key.
	 * @param string $value  Value to return.
	 *
	 * @return mixed The screen option value. False when not errors_per_page.
	 */
	public function set_screen_option( $status, $option, $value ) {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );

		return false;
	}

	/**
	 * Sets the tab help on top of the screen.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @return void
	 */
	public function set_help() {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}
}