Yoast\WP\SEO\AI\Content_Planner\Application

Content_Suggestion_Command::__constructpublicYoast 1.0

The constructor.

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

Хуков нет.

Возвращает

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

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

$Content_Suggestion_Command = new Content_Suggestion_Command();
$Content_Suggestion_Command->__construct( $user, $post_type, $language, $editor );
$user(WP_User) (обязательный)
The user.
$post_type(строка) (обязательный)
The post type.
$language(строка) (обязательный)
The language.
$editor(строка) (обязательный)
The editor.

Код Content_Suggestion_Command::__construct() Yoast 27.7

public function __construct( WP_User $user, string $post_type, string $language, string $editor ) {
	$this->user      = $user;
	$this->post_type = $post_type;
	$this->language  = $language;
	$this->editor    = $editor;
}