Yoast\WP\SEO\Actions\Importing\Aioseo
Aioseo_Posts_Importing_Action::get_total_unindexed
Returns the total number of unimported objects.
Метод класса: Aioseo_Posts_Importing_Action{}
Хуков нет.
Возвращает
int. The total number of unimported objects.
Использование
$Aioseo_Posts_Importing_Action = new Aioseo_Posts_Importing_Action(); $Aioseo_Posts_Importing_Action->get_total_unindexed();
Код Aioseo_Posts_Importing_Action::get_total_unindexed() Aioseo Posts Importing Action::get total unindexed Yoast 28.3
public function get_total_unindexed() {
if ( ! $this->aioseo_helper->aioseo_exists() ) {
return 0;
}
$limit = false;
$just_detect = true;
$indexables_to_create = $this->wpdb->get_col( $this->query( $limit, $just_detect ) );
$number_of_indexables_to_create = \count( $indexables_to_create );
$completed = $number_of_indexables_to_create === 0;
$this->set_completed( $completed );
return $number_of_indexables_to_create;
}