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

WPSEO_GSC_Count{} Yoast 1.0

Запрещена (устарела) с версии 12.5. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Class WPSEO_GSC_Count.

Хуков нет.

Возвращает

Null. Ничего.

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

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

Методы

  1. __construct( WPSEO_GSC_Service $service )
  2. get_platform_counts( $platform )
  3. get_issues()
  4. list_issues( $platform, $category )
  5. get_issue_count( $platform, $category )
  6. update_issue_count( $platform, $category, $new_count )
  7. fetch_counts()

Список изменений

Устарела с 12.5

Код WPSEO_GSC_Count{} Yoast 15.1.1

<?php
class WPSEO_GSC_Count {

	/**
	 * The name of the option containing the last checked timestamp.
	 *
	 * @var string
	 */
	const OPTION_CI_LAST_FETCH = 'wpseo_gsc_last_fetch';

	/**
	 * The option name where the issues counts are saved.
	 *
	 * @var string
	 */
	const OPTION_CI_COUNTS = 'wpseo_gsc_issues_counts';

	/**
	 * Fetching the counts
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @param WPSEO_GSC_Service $service Service class instance.
	 */
	public function __construct( WPSEO_GSC_Service $service ) {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}

	/**
	 * Getting the counts for given platform and return them as an array.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @param string $platform Platform (desktop, mobile, feature phone).
	 *
	 * @return array
	 */
	public function get_platform_counts( $platform ) {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );

		return [];
	}

	/**
	 * Return the fetched issues.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @return array
	 */
	public function get_issues() {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );

		return $this->issues;
	}

	/**
	 * Listing the issues an gives them back as fetched issues.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @param string $platform Platform (desktop, mobile, feature phone).
	 * @param string $category Issue category.
	 */
	public function list_issues( $platform, $category ) {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}

	/**
	 * Getting the counts for given platform and category.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @param string $platform Platform (desktop, mobile, feature phone).
	 * @param string $category Issue type.
	 *
	 * @return integer
	 */
	public function get_issue_count( $platform, $category ) {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );

		return 0;
	}

	/**
	 * Update the count of the issues.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 *
	 * @param string  $platform  Platform (desktop, mobile, feature phone).
	 * @param string  $category  Issue type.
	 * @param integer $new_count Updated count.
	 */
	public function update_issue_count( $platform, $category, $new_count ) {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}

	/**
	 * Fetching the counts from the GSC API.
	 *
	 * @deprecated 12.5
	 *
	 * @codeCoverageIgnore
	 */
	public function fetch_counts() {
		_deprecated_function( __METHOD__, 'WPSEO 12.5' );
	}
}