Yoast\WP\SEO\Routes

First_Time_Configuration_Route::save_configuration_state()publicYoast 1.0

Saves the first time configuration state.

{} Это метод класса: First_Time_Configuration_Route{}

Хуков нет.

Возвращает

WP_REST_Response.

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

$First_Time_Configuration_Route = new First_Time_Configuration_Route();
$First_Time_Configuration_Route->save_configuration_state( $request );
$request(WP_REST_Request) (обязательный)
The request.

Код First_Time_Configuration_Route::save_configuration_state() Yoast 19.2

public function save_configuration_state( WP_REST_Request $request ) {
	$data = $this
		->first_time_configuration_action
		->save_configuration_state( $request->get_json_params() );

	return new WP_REST_Response( $data, $data->status );
}