Travel Agency Companion icon
Events & Booking

Travel Agency Companion hooks reference

Travel Agency Companion 1.5.9 has 2 actions and 26 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Travel Agency Companion fires an action
add_action( 'admin_footer', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Travel Agency Companion is about to use
add_filter( 'widget_title', function( $title, $instance, $id_base ) {
	// Change $title here.
	return $title;
}, 10, 3 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/widgets/widget-featured.php line 60 · used in 3 places
    apply_filters( 'widget_title', $title, $instance, $this->id_base );
  • public/sections/deals.php line 228 · used in 2 places
    apply_filters( 'trip_card_fixed_departure_dates', get_the_ID() );
  • includes/widgets/widget-popular-post.php line 131
    apply_filters( 'popular_post_size', 'thumbnail' );
  • includes/class-control-repeater.php line 529
    apply_filters( 'rara/repeater/l10n', $translation_strings );
  • includes/widgets/widget-recent-post.php line 52
    apply_filters_ref_array( 'raratheme_exclude_categories', $cats );
  • includes/widgets/widget-recent-post.php line 74
    apply_filters( 'recent_img_size', 'thumbnail' );
  • includes/widgets/widget-popular-post.php line 162
    apply_filters( 'ta_companion_popular_post_widget_filter', $html, $args, $instance );
  • includes/widgets/widget-recent-post.php line 95
    apply_filters( 'ta_companion_recent_post_widget_filter', $html, $args, $instance );
  • public/class-travel-agency-companion-public.php line 140
    apply_filters( 'tac_all_enqueue', true );
  • public/class-travel-agency-companion-public.php line 122
    apply_filters( 'tac_odometer_enqueue', true );
  • public/class-travel-agency-companion-public.php line 194
    apply_filters( 'tac_public_assets_enqueue', true );
  • public/class-travel-agency-companion-public.php line 146
    apply_filters( 'tac_shims_enqueue', true );
  • public/class-travel-agency-companion-public.php line 128
    apply_filters( 'tac_waypoint_enqueue', true );
  • public/sections/about.php line 31
    apply_filters( 'the_content', $adcode );
  • public/class-travel-agency-companion-public.php line 198
    apply_filters( 'travel_agency_companion_js_async_files', array( plugin_dir_url( __FILE__ ) . 'js/owl.carousel.min.js', plugin_dir_url( __FILE__ ) . 'js/odometer.min.js', plugin_dir_url( __FILE__ ) . 'js/waypoint.min.js', plugin_dir_url( __FILE__ ) . 'js/travel-agency-companion-public.min.js', plugin_dir_url( __FILE__ ) . 'js/fontawesome/all.min.js', plugin_dir_url( __FILE__ ) . 'js/fontawesome/v4-shims.min.js', plugin_dir_url( __FILE__ ) . 'js/owl.ca... );
  • includes/class-travel-agency-companion-dummy-array.php line 16
    apply_filters( 'travel_agency_default_activities', array( array( 'thumbnail' => TRAVEL_AGENCY_COMPANION_URL . '/includes/images/img3.jpg', 'name' => __( 'Whitewater Rafting', 'travel-agency-companion' ), 'desc' => __( 'Tell your potential customers about the services that you provide here.', 'travel-agency-companion' ), 'url' => '#', ), array( 'thumbnail' => TRAVEL_AGENCY_COMPANION_URL . '/includes/images/img4.jpg', 'name' => __( 'Hiking', 'tra... );
  • includes/class-travel-agency-companion-dummy-array.php line 265
    apply_filters( 'travel_agency_default_deal_post', array( array( 'title' => __( 'Cayo de Agua, Los Roques, Venezuela', 'travel-agency-companion' ), 'days' => __( '5 Days - 4 Nights', 'travel-agency-companion' ), 'sale_price' => __( '$ 1875', 'travel-agency-companion' ), 'old_price' => __( '$ 2500', 'travel-agency-companion' ), 'discount' => __( '25% Off', 'travel-agency-companion' ), 'img' => TRAVEL_AGENCY_COMPANION_URL.'/includes/images/img21.... );
  • includes/class-travel-agency-companion-dummy-array.php line 219
    apply_filters( 'travel_agency_default_featured_post', array( array( 'title' => __( 'Cayo de Agua, Los Roques, Venezuela', 'travel-agency-companion' ), 'days' => __( '5 Days - 4 Nights', 'travel-agency-companion' ), 'sale_price' => __( '$ 1875', 'travel-agency-companion' ), 'img' => TRAVEL_AGENCY_COMPANION_URL.'/includes/images/img14.jpg', ), array( 'title' => __( 'Cum sociis natoque penati bus et magnis', 'travel-agency-companion' ), 'days' => __(... );
  • includes/class-travel-agency-companion-dummy-array.php line 183
    apply_filters( 'travel_agency_default_popular_post', array( array( 'title' => __( 'A Guid To Rocky Mountain Vacations', 'travel-agency-companion' ), 'days' => __( '4 Days', 'travel-agency-companion' ), 'sale_price' => __( '$ 1775', 'travel-agency-companion' ), 'img' => TRAVEL_AGENCY_COMPANION_URL.'/includes/images/img9.jpg', ), array( 'title' => __( 'Everest Base Camp Trek', 'travel-agency-companion' ), 'days' => __( '5 Days', 'travel-agency-comp... );
  • includes/class-travel-agency-companion-dummy-array.php line 149
    apply_filters( 'travel_agency_default_popular_post_slider', array( array( 'title' => __( 'Cayo de Agua, Los Roques, Venezuela', 'travel-agency-companion' ), 'days' => __( '5 Days', 'travel-agency-companion' ), 'sale_price' => __( '$ 1875', 'travel-agency-companion' ), 'img' => TRAVEL_AGENCY_COMPANION_URL.'/includes/images/img8.jpg', ), array( 'title' => __( 'A Guid To Rocky Mountain Vacations', 'travel-agency-companion'), 'days' => __( '4 Days', 'travel... );
  • includes/class-travel-agency-companion-dummy-array.php line 118
    apply_filters( 'travel_agency_default_stat_counter', array( array( 'icon' => 'fa fa-group', 'title' => __( 'Number of Customers', 'travel-agency-companion' ), 'number' => __( '859', 'travel-agency-companion' ), ), array( 'icon' => 'fa fa-globe', 'title' => __( 'Number of Trips', 'travel-agency-companion' ), 'number' => __( '1021', 'travel-agency-companion' ), ), array( 'icon' => 'fa fa-plane', 'title' => __( 'Trips Types', 'travel-agency-companio... );
  • includes/class-travel-agency-companion-dummy-array.php line 73
    apply_filters( 'travel_agency_default_why_us', array( array( 'whyus-icon' => 'fa fa-check', 'title' => __( 'TripAdvisor Multiple Award winning company', 'travel-agency-companion' ), 'description' => __( 'We\'ve received Certificate of Excellence award from TripAdvisor, the world\'s largest travel website.', 'travel-agency-companion' ), 'url' => '' ), array( 'whyus-icon' => 'fa fa-check', 'title' => __( '100% Customizable', 'travel-agency-co... );

Generated from Travel Agency Companion's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: