Yoast\WP\SEO\Actions\Configuration

First_Time_Configuration_Action::get_configuration_state()publicYoast 1.0

Gets the first time configuration state.

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

Хуков нет.

Возвращает

Объект. The response object.

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

$First_Time_Configuration_Action = new First_Time_Configuration_Action();
$First_Time_Configuration_Action->get_configuration_state();

Код First_Time_Configuration_Action::get_configuration_state() Yoast 19.2

public function get_configuration_state() {
	$configuration_option = $this->options_helper->get( 'configuration_finished_steps' );

	if ( ! is_null( $configuration_option ) ) {
		return (object) [
			'success' => true,
			'status'  => 200,
			'data'    => $configuration_option,
		];
	}

	return (object) [
		'success' => false,
		'status'  => 500,
		'error'   => 'Could not get data from the database',
	];
}