Codex

Function Reference/get transient

Contents

Description

Get the value of a transient.

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

Usage

<?php get_transient$transient ); ?>

Parameters

$transient
(string) (required) Transient name. Expected to not be SQL-escaped.
Default: None

Return Values

(mixed) 
Value of transient

Examples

Notes

Change Log

Since: 2.8

Source File

get_transient() is located in wp-includes/functions.php.

Related

Transients API: set_transient(), get_transient(), delete_transient(), set_site_transient(), get_site_transient(), delete_site_transient()

See also index of Function Reference and index of Template Tags.