WPSEO_Tracking::get_collector()publicYoast 1.0

Returns the collector for collecting the data.

Метод класса: WPSEO_Tracking{}

Хуков нет.

Возвращает

WPSEO_Collector. The instance of the collector.

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

$WPSEO_Tracking = new WPSEO_Tracking();
$WPSEO_Tracking->get_collector();

Код WPSEO_Tracking::get_collector() Yoast 23.5

public function get_collector() {
	$collector = new WPSEO_Collector();
	$collector->add_collection( new WPSEO_Tracking_Default_Data() );
	$collector->add_collection( new WPSEO_Tracking_Server_Data() );
	$collector->add_collection( new WPSEO_Tracking_Theme_Data() );
	$collector->add_collection( new WPSEO_Tracking_Plugin_Data() );
	$collector->add_collection( new WPSEO_Tracking_Settings_Data() );
	$collector->add_collection( new WPSEO_Tracking_Addon_Data() );
	$collector->add_collection( YoastSEO()->classes->get( Missing_Indexables_Collector::class ) );
	$collector->add_collection( YoastSEO()->classes->get( To_Be_Cleaned_Indexables_Collector::class ) );

	return $collector;
}