WPSEO_Tracking::__construct
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() WPSEO Tracking:: construct Yoast 26.7
public function __construct( $endpoint, $threshold ) {
if ( ! $this->tracking_enabled() ) {
return;
}
$this->endpoint = $endpoint;
$this->threshold = $threshold;
$this->current_time = time();
}