WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
функция не описана

WPSEO_Addon_Manager::get_myyoast_site_information() public Yoast 1.0

Retrieves information from MyYoast about which addons are connected to the current site.

{} Это метод класса: WPSEO_Addon_Manager{}

Хуков нет.

Возвращает

stdClass. The list of addons activated for this site.

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

$WPSEO_Addon_Manager = new WPSEO_Addon_Manager();
$WPSEO_Addon_Manager->get_myyoast_site_information();

Код WPSEO_Addon_Manager::get_myyoast_site_information() Yoast 16.7

<?php
public function get_myyoast_site_information() {
	if ( $this->site_information === null ) {
		$this->site_information = $this->get_site_information_transient();
	}

	if ( $this->site_information ) {
		return $this->site_information;
	}

	$this->site_information = $this->request_current_sites();
	if ( $this->site_information ) {
		$this->site_information = $this->map_site_information( $this->site_information );

		$this->set_site_information_transient( $this->site_information );

		return $this->site_information;
	}

	return $this->get_site_information_default();
}