Yoast\WP\SEO\AI\Content_Planner\Application

Content_Outline_Command::__constructpublicYoast 1.0

The constructor.

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

Хуков нет.

Возвращает

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

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

$Content_Outline_Command = new Content_Outline_Command();
$Content_Outline_Command->__construct( $user, $post_type, $language, $editor, $title, $intent, $explanation, $keyphrase, $meta_description, $category_name, $category_id );
$user(WP_User) (обязательный)
The user.
$post_type(строка) (обязательный)
The post type.
$language(строка) (обязательный)
The language.
$editor(строка) (обязательный)
The editor.
$title(строка) (обязательный)
The title.
$intent(строка) (обязательный)
The intent.
$explanation(строка) (обязательный)
The explanation.
$keyphrase(строка) (обязательный)
The keyphrase.
$meta_description(строка) (обязательный)
The meta description.
$category_name(строка) (обязательный)
The category name.
$category_id(int) (обязательный)
The category ID.

Код Content_Outline_Command::__construct() Yoast 27.7

public function __construct(
	WP_User $user,
	string $post_type,
	string $language,
	string $editor,
	string $title,
	string $intent,
	string $explanation,
	string $keyphrase,
	string $meta_description,
	string $category_name,
	int $category_id
) {
	$this->user             = $user;
	$this->post_type        = $post_type;
	$this->language         = $language;
	$this->editor           = $editor;
	$this->title            = $title;
	$this->intent           = $intent;
	$this->explanation      = $explanation;
	$this->keyphrase        = $keyphrase;
	$this->meta_description = $meta_description;
	$this->category         = new Category( $category_name, $category_id );
}