Browse: Home / Classes / LDLMS_Transients /

LDLMS_Transients::set

LDLMS_Transients::set( string $transient_key = '',  mixed $transient_data = '',  integer $transient_expire = MINUTE_IN_SECONDS )

Utility function to interface with WP set_transient function. This function allow for filtering if to actually write the transient.


Description #


Parameters #

$transient_key

(string) (Optional) The transient key.

Default value: ''

$transient_data

(mixed) (Optional) Data to store in transient.

Default value: ''

$transient_expire

(integer) (Optional) Expiration time for transient.

Default value: MINUTE_IN_SECONDS


Source #

File: includes/class-ldlms-transients.php


Changelog #

Changelog
Version Description
3.1.0 Introduced.