Function: get_site_transient

get_site_transient( string $transient )

Get the value of a site transient.

If the transient does not exist, does not have a value, or has expired, then the return value will be false.


Name Type(s) Default Value Description
$transient string

Transient name. Expected to not be SQL-escaped.



Value of transient.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.