RestroPress

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

rpress_payment_meta_cart_details

This filter is applied to use the payment cart_details Key from Payment Meta, it is including two parameters.

$cart_details-> is containing cart details.
$payment_id -> is containg payment id.

function get_payment_cart_details( $cart_details ){
// its returns the payment meta of cart details.
return $cart_details;
}
apply_filter( 'rpress_payment_meta_cart_details', 'get_payment_cart_details',10,2 );

How can we help?