delete_expired_transients ( $force_db = false )
- (bool) force_db Optional. Force cleanup to run against the database even when an external object cache is used.
- Introduced in WordPress: 4.9.0
- Deprecated in WordPress: —
Deletes all expired transients.The multi-table delete syntax is used to delete the transient record
from table a, and the corresponding transient_timeout record from table b.