WPSEO_Tracking::__construct()publicYoast 1.0

WPSEO_Tracking constructor.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WPSEO_Tracking = new WPSEO_Tracking();
$WPSEO_Tracking->__construct( $endpoint, $threshold );
$endpoint(строка) (обязательный)
The endpoint to send the data to.
$threshold(int) (обязательный)
The limit for the option.

Код WPSEO_Tracking::__construct() Yoast 22.4

public function __construct( $endpoint, $threshold ) {
	if ( ! $this->tracking_enabled() ) {
		return;
	}

	$this->endpoint     = $endpoint;
	$this->threshold    = $threshold;
	$this->current_time = time();
}