Yoast\WP\SEO\Actions\Importing

Abstract_Aioseo_Importing_Action::set_completed()publicYoast 1.0

Stores the current state of completedness.

Метод класса: Abstract_Aioseo_Importing_Action{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$Abstract_Aioseo_Importing_Action = new Abstract_Aioseo_Importing_Action();
$Abstract_Aioseo_Importing_Action->set_completed( $completed );
$completed(true|false) (обязательный)
Whether the importer is completed.

Код Abstract_Aioseo_Importing_Action::set_completed() Yoast 24.3

public function set_completed( $completed ) {
	$completed_id                  = $this->get_completed_id();
	$current_importers_completions = $this->options->get( 'importing_completed', [] );

	$current_importers_completions[ $completed_id ] = $completed;
	$this->options->set( 'importing_completed', $current_importers_completions );
}