RestroPress

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

rpress_receipt_total_price

The rpress_receipt_total_price filter is applied to get  the receipt total price. It receives one parameter. The title can be changed through this filter.

apply_filters( ‘rpress_receipt_total_price’, esc_html_e( ‘Total’, ‘restropress’ ) );

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

function rpress_receipt_total_price_callback( $title_price ) {
      $title_price = esc_html_e( 'Total amount', 'restropress' ) );
       return $title_price;
}
add_filter( ' rpress_receipt_total_price’, 'rpress_receipt_total_price_callback', 10, 1 );

 

How can we help?