Yoast\WP\SEO\Actions\Importing\Aioseo

Aioseo_Cleanup_Action::get_limited_unindexed_count()publicYoast 1.0

Just checks if the cleanup has been completed in the past.

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

Хуков нет.

Возвращает

int|false. The limited number of unindexed posts. False if the query fails.

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

$Aioseo_Cleanup_Action = new Aioseo_Cleanup_Action();
$Aioseo_Cleanup_Action->get_limited_unindexed_count( $limit );
$limit(int) (обязательный)
The maximum number of unimported objects to be returned.

Код Aioseo_Cleanup_Action::get_limited_unindexed_count() Yoast 19.2

public function get_limited_unindexed_count( $limit ) {
	if ( ! $this->aioseo_helper->aioseo_exists() ) {
		return 0;
	}

	return ( ! $this->get_completed() ) ? 1 : 0;
}