Delete expired transients
wp_cleanup_transientsDelete expired WordPress transients by removing option rows whose timeout has passed, leaving unexpired and site transients untouched, and return the count deleted.
Instructions
Delete the expired transients: every transient whose transient_timeout row in the options table has passed is deleted through WordPress (value and timeout). Transients not yet expired and site transients (site_transient) are left alone. Returns deleted, the number of expired transients found and handed to WordPress for deletion. With a persistent object cache WordPress deletes in the cache only, so the old option rows can remain. Requires manage_options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||