RestroPress

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

rpress_get_payment_subtotal

This filter is applied to use the payment subtotal amount data of orders, it is including two parameters.
$this->subtotal is got the subtotal value.
$this->ID is used to get id.

An example of how you can append additional information:

function get_subtotal( $subtotal ){
// return subtotal value;
return $subtotal;
}
add_filter( 'rpress_get_payment_subtotal', 'get_subtotal',10, 2 );

 

How can we help?