Yoast\WP\SEO\AI_Free_Sparks\User_Interface
Free_Sparks_Route::start
Runs the callback to start the free sparks.
Метод класса: Free_Sparks_Route{}
Хуков нет.
Возвращает
WP_REST_Response. The response of the callback action.
Использование
$Free_Sparks_Route = new Free_Sparks_Route(); $Free_Sparks_Route->start(): WP_REST_Response;
Код Free_Sparks_Route::start() Free Sparks Route::start Yoast 28.3
public function start(): WP_REST_Response {
$result = $this->free_sparks_handler->start( null );
if ( ! $result ) {
new WP_REST_Response( 'Failed to start free sparks.', 500 );
}
return new WP_REST_Response( 'Free sparks successfully started.' );
}