Skip to content

Commit

Permalink
set the entitlements transient
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Oct 8, 2024
1 parent aaa6f3c commit fa22e81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/EntitlementsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function register_routes() {
* @param array $data Data to be stored
* @param float|int $expiration Transient expiration.
*/
public function setTransient( $data, $expiration = 21600 ) {
public function set_the_transient( $data, $expiration = 21600 ) {
set_transient( self::TRANSIENT, $data, $expiration );
}

Expand Down Expand Up @@ -142,6 +142,7 @@ public function get_items() {
array_key_exists( 'categories', $data )
) {
$entitlements = $data;
set_the_transient( $entitlements );
}
}

Expand Down

0 comments on commit fa22e81

Please sign in to comment.