WPSEO_Remote_Request::__construct()
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() WPSEO Remote Request:: construct Yoast 24.9
public function __construct( $endpoint, array $args = [] ) { $this->endpoint = $endpoint; $this->args = wp_parse_args( $this->args, $args ); }