Skip to content

Commit

Permalink
Update data-utilities.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 26, 2024
1 parent 45feb8a commit bb86b31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/includes/data-utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function mt_extend_expiration( $amount = 300 ) {
* Abstract function to delete data. Defaults to delete user's shopping cart.
*
* @param string $data Type of data to delete.
* @param string $unique_id Data key to delete.
*/
function mt_delete_data( $data = 'cart', $unique_id = false ) {
return;
Expand Down Expand Up @@ -388,7 +389,7 @@ function mt_set_transient( $transient_id, $value ) {

/**
* Get a transient value for data storage.
*
*
* @param string $transient_id Option name.
*
* @return mixed Option value.
Expand All @@ -401,7 +402,7 @@ function mt_get_transient( $transient_id ) {

/**
* Delete a transient value for data storage.
*
*
* @param string $transient_id Option name.
*/
function mt_delete_transient( $transient_id ) {
Expand Down Expand Up @@ -440,4 +441,4 @@ function mt_get_data_types() {
$types = array( 'cart', 'payment', 'offline-payment' );

return $types;
}
}

0 comments on commit bb86b31

Please sign in to comment.