Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Action Hooks Associated With Tour Extras
  5. Action :wp_travel_tour_extras_mini_cart_block

Action :wp_travel_tour_extras_mini_cart_block

Fire in the WP Travel mini cart before coupon discount field.

Active Since v3.0.0


File: /inc/cart/cart-mini.php
Used by: /inc/cart/cart-mini.php

$trip_extras, $cart_id, $trip_id, $price_key


function prefix_wp_travel_tour_extras_mini_cart_block( $trip_extras, $cart_id, $trip_id, $price_key ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
add_action( ‘wp_travel_tour_extras_mini_cart_block', 'prefix_wp_travel_tour_extras_mini_cart_block’ );
Was this article helpful to you? Yes No

How can we help?