Yoast\WP\SEO\AI\Content_Planner\Application
Content_Suggestion_Command_Handler::build_response
Builds a response object bundling the content suggestions with the recent content used to generate them.
Метод класса: Content_Suggestion_Command_Handler{}
Хуков нет.
Возвращает
Content_Suggestion_Response. The response containing suggestions and recent content.
Использование
$Content_Suggestion_Command_Handler = new Content_Suggestion_Command_Handler(); $Content_Suggestion_Command_Handler->build_response( $response, $recent_content ): Content_Suggestion_Response;
- $response(Response) (обязательный)
- The API response.
- $recent_content(Post_List) (обязательный)
- The recent content passed to the AI API.
Код Content_Suggestion_Command_Handler::build_response() Content Suggestion Command Handler::build response Yoast 28.3
public function build_response( Response $response, Post_List $recent_content ): Content_Suggestion_Response {
return new Content_Suggestion_Response(
$this->build_suggestions_array( $response ),
$recent_content,
);
}