Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get_transient wordpress

// Save the API response so we don't have to call again until tomorrow.
set_transient( 'css_t_subscribers', $data, DAY_IN_SECONDS );

// Do we have this information in our transients already?
$transient = get_transient( 'css_t_subscribers' );
  
// Do things...

refrence:
https://css-tricks.com/the-deal-with-wordpress-transients/
 
PREVIOUS NEXT
Tagged: #wordpress
ADD COMMENT
Topic
Name
8+3 =