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

Yoast\WP\SEO\Config

SEMrush_Client::__construct() public Yoast 1.0

SEMrush_Client constructor.

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

Хуков нет.

Возвращает

null. Null. Ничего.

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

$SEMrush_Client = new SEMrush_Client();
$SEMrush_Client->__construct(;

Код SEMrush_Client::__construct() Yoast 16.1.1

<?php
public function __construct(
	Options_Helper $options_helper,
	WP_Remote_Handler $wp_remote_handler
) {
	$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( [ 'handler' => $wp_remote_handler ] ),
		]
	);

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