Yoast\WP\SEO\Actions\Importing\Aioseo
Abstract_Aioseo_Settings_Importing_Action::get_unindexed_count()
Returns the number of unimported objects (limited if limit is applied).
Метод класса: Abstract_Aioseo_Settings_Importing_Action{}
Хуков нет.
Возвращает
int
. The number of unindexed posts.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_unindexed_count( $limit );
- $limit(int|null)
- The maximum number of unimported objects to be returned.
По умолчанию: null
Код Abstract_Aioseo_Settings_Importing_Action::get_unindexed_count() Abstract Aioseo Settings Importing Action::get unindexed count Yoast 24.0
protected function get_unindexed_count( $limit = null ) { if ( ! \is_int( $limit ) || $limit < 1 ) { $limit = null; } $settings_to_create = $this->query( $limit ); $number_of_settings_to_create = \count( $settings_to_create ); $completed = $number_of_settings_to_create === 0; $this->set_completed( $completed ); return $number_of_settings_to_create; }