rpress_receipt_total_price

Author: RestroPress 297 views

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 );