Yoast\WP\SEO\AI\Content_Planner\Domain
Content_Suggestion::__construct
The constructor.
Метод класса: Content_Suggestion{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Content_Suggestion = new Content_Suggestion(); $Content_Suggestion->__construct( $title, $intent, $explanation, $keyphrase, $meta_description, $category );
- $title(строка) (обязательный)
- The title.
- $intent(строка) (обязательный)
- The intent.
- $explanation(строка) (обязательный)
- The explanation.
- $keyphrase(строка) (обязательный)
- The keyphrase.
- $meta_description(строка) (обязательный)
- The meta description.
- $category(Category) (обязательный)
- The category. Use a Category with name "" and id -1 to represent "no category".
Код Content_Suggestion::__construct() Content Suggestion:: construct Yoast 27.7
public function __construct(
string $title,
string $intent,
string $explanation,
string $keyphrase,
string $meta_description,
Category $category
) {
$this->title = $title;
$this->intent = $intent;
$this->explanation = $explanation;
$this->keyphrase = $keyphrase;
$this->meta_description = $meta_description;
$this->category = $category;
}