Created
October 27, 2015 13:34
-
-
Save klhall1987/db2e65787c792ec206c6 to your computer and use it in GitHub Desktop.
Setting Transient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set_transient( $transient , $value , $expiration); | |
$transient //This is a string that will be used as a unique identifier for your cached data. It must be less than 45 characters. | |
$value //This will be an array, object, or variable you wish to cache. | |
$expiration //An integer of the maximum of seconds to keep the data before expiring. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment