| @@ -32,6 +32,17 @@ | ||
| 32 | 32 | $key = '_templately_' . trim( $key ); |
| 33 | 33 | return get_transient( $key ); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** | |
| 37 | + * Delete transient data from options table. | |
| 38 | + * | |
| 39 | + * @param string $key Transient key. | |
| 40 | + * @return bool | |
| 41 | + */ | |
| 42 | + public static function delete_transient( $key ) { | |
| 43 | + $key = '_templately_' . trim( $key ); | |
| 44 | + return delete_transient( $key ); | |
| 45 | + } | |
| 36 | 46 | |
| 37 | -} | |
| 47 | + | |
| 48 | +} | |