WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

Yoast\WP\SEO\Config

SEMrush_Client::__construct() public Yoast 1.0

SEMrush_Client constructor.

{} Это метод класса: SEMrush_Client{}

Хуков нет.

Возвращает

Null. Ничего.

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

$SEMrush_Client = new SEMrush_Client();
$SEMrush_Client->__construct( $options_helper );
$options_helper(Options_Helper) (обязательный)
The Options_Helper instance.

Код SEMrush_Client::__construct() Yoast 15.1.1

<?php
public function __construct( Options_Helper $options_helper ) {
	$this->provider = new GenericProvider(
		[
			'clientId'                => 'yoast',
			'clientSecret'            => 'YdqNsWwnP4vE54WO1ugThKEjGMxMAHJt',
			'redirectUri'             => 'https://oauth.semrush.com/oauth2/yoast/success',
			'urlAuthorize'            => 'https://oauth.semrush.com/oauth2/authorize',
			'urlAccessToken'          => 'https://oauth.semrush.com/oauth2/access_token',
			'urlResourceOwnerDetails' => 'https://oauth.semrush.com/oauth2/resource',
		],
		[
			'httpClient' => new Client(
				[
					'verify' => ABSPATH . 'wp-includes/certificates/ca-bundle.crt',
				]
			),
		]
	);

	$this->options_helper = $options_helper;
	$this->token          = $this->get_token_from_storage();
}