WPSEO_Addon_Manager::get_myyoast_site_information()
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() WPSEO Addon Manager::get myyoast site information Yoast 24.9
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(); }