WPSEO_Tracking_Addon_Data::get()publicYoast 1.0

Returns the collection data.

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

Хуков нет.

Возвращает

Массив. The collection data.

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

$WPSEO_Tracking_Addon_Data = new WPSEO_Tracking_Addon_Data();
$WPSEO_Tracking_Addon_Data->get();

Код WPSEO_Tracking_Addon_Data::get() Yoast 19.10

public function get() {

	$addon_settings = [];
	$addon_manager  = new WPSEO_Addon_Manager();

	if ( $addon_manager->is_installed( WPSEO_Addon_Manager::LOCAL_SLUG ) ) {
		$addon_settings = $this->get_local_addon_settings( $addon_settings, 'wpseo_local', WPSEO_Addon_Manager::LOCAL_SLUG, $this->local_include_list );
	}

	if ( $addon_manager->is_installed( WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ) ) {
		$addon_settings = $this->get_addon_settings( $addon_settings, 'wpseo_woo', WPSEO_Addon_Manager::WOOCOMMERCE_SLUG, $this->woo_include_list );
	}

	if ( $addon_manager->is_installed( WPSEO_Addon_Manager::NEWS_SLUG ) ) {
		$addon_settings = $this->get_addon_settings( $addon_settings, 'wpseo_news', WPSEO_Addon_Manager::NEWS_SLUG, $this->news_include_list );
	}

	if ( $addon_manager->is_installed( WPSEO_Addon_Manager::VIDEO_SLUG ) ) {
		$addon_settings = $this->get_addon_settings( $addon_settings, 'wpseo_video', WPSEO_Addon_Manager::VIDEO_SLUG, $this->video_include_list );
	}

	return $addon_settings;
}