Yoast\WP\SEO\AI\Generator\Domain

Suggestions_Parameters::__construct │ public │ Yoast 1.0

The constructor.

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

Хуков нет.

Возвращает

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

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

$Suggestions_Parameters = new Suggestions_Parameters();
$Suggestions_Parameters->__construct( $user, $suggestion_type, $prompt_content, $focus_keyphrase, $language, $platform, $editor );
$user(WP_User) (обязательный)
The user.
$suggestion_type(строка) (обязательный)
The suggestion type.
$prompt_content(строка) (обязательный)
The prompt content excerpt.
$focus_keyphrase(строка) (обязательный)
The focus keyphrase.
$language(строка) (обязательный)
The language of the post.
$platform(строка) (обязательный)
The platform.
$editor(строка) (обязательный)
The editor identifier.

Код Suggestions_Parameters::__construct() Yoast 28.9

public function __construct(
	WP_User $user,
	string $suggestion_type,
	string $prompt_content,
	string $focus_keyphrase,
	string $language,
	string $platform,
	string $editor
) {
	$this->user            = $user;
	$this->suggestion_type = $suggestion_type;
	$this->prompt_content  = $prompt_content;
	$this->focus_keyphrase = $focus_keyphrase;
	$this->language        = $language;
	$this->platform        = $platform;
	$this->editor          = $editor;
}