Yoast\WP\SEO\Expiring_Store\Application

Expiring_Store::cleanup_expiredpublicYoast 1.0

Cleans up all expired entries.

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

Хуков нет.

Возвращает

int. The number of deleted entries.

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

$Expiring_Store = new Expiring_Store();
$Expiring_Store->cleanup_expired(): int;

Код Expiring_Store::cleanup_expired() Yoast 27.7

public function cleanup_expired(): int {
	return $this->repository->delete_expired( $this->current_datetime() );
}