WPSEO_Remote_Request::__construct()publicYoast 1.0

Sets the endpoint and arguments.

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

Хуков нет.

Возвращает

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

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

$WPSEO_Remote_Request = new WPSEO_Remote_Request();
$WPSEO_Remote_Request->__construct( $endpoint, $args );
$endpoint(строка) (обязательный)
The endpoint to send the request to.
$args(массив)
The arguments to use in this request.
По умолчанию: []

Код WPSEO_Remote_Request::__construct() Yoast 22.4

public function __construct( $endpoint, array $args = [] ) {
	$this->endpoint = $endpoint;
	$this->args     = wp_parse_args( $this->args, $args );
}