RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Filters
  6. rpress_cart_data

rpress_cart_data

This filter is applied for the get cart data . The returned data can be modified through this filter.

The sample below shows an example of how you could modify it:

function rpress_cart_data_callback' ( $return ) {
   $return = array(
          'fee' => $fee,
     );
 return $return ;

}
add_filter( ' rpress_cart_data', 'rpress_cart_data_callback', 10, 1 );

How can we help?