WPCargo Track & Trace 8.0.6 has 86 actions and 132 filters, read directly from its source code on Nov 17, 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.
// Run your own code when WPCargo Track & Trace fires an action
add_action( 'wpcargo_after_package_totals', function( $shipment ) {
// Your code runs here.
}, 10, 1 );
// Change a value WPCargo Track & Trace is about to use
add_filter( 'wpc_shipment_history_header', function( $html__ ) {
// Change $html__ here.
return $html__;
}, 10, 1 );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
-
wpcargo_after_package_totals
actiondo_action( 'wpcargo_after_package_totals', $shipment ); -
do_action( 'wpcargo_after_package_details', $shipment ); -
wpcargo_after_track_details
actiondo_action( 'wpcargo_after_track_details', $shipment ); -
do_action( 'wpcargo_before_shipment_details', $shipment ); -
wpcargo_before_track_details
actiondo_action( 'wpcargo_before_track_details', $shipment ); -
wpcargo_print_btn
actiondo_action( 'wpcargo_print_btn' ); -
wpcargo_track_header_details
actiondo_action( 'wpcargo_track_header_details', $shipment ); -
do_action( 'wpcargo_track_shipment_details', $shipment ); -
do_action( 'wpcargo_track_shipper_details', $shipment ); -
do_action( 'before_wpcargo_shipment_history', $post->ID ); -
wpc_shipment_history_header
filterapply_filters( 'wpc_shipment_history_header', esc_html__( 'Shipment History', 'wpcargo' ) ); -
wpcargo_before_search_result
actiondo_action( 'wpcargo_before_search_result' ); -
wpcargo_history_order
filterapply_filters( 'wpcargo_history_order', strcmp($date_a["date"], $date_b["date"]) ); -
do_action( 'wpcargo_shipment_history_header' ); -
do_action( 'wpcargo_track_after_header_details', $shipment ); -
result_receiver_address
filterapply_filters( 'result_receiver_address', __('Receiver Address', 'wpcargo') ); -
result_shipper_address
filterapply_filters( 'result_shipper_address', __('Shipper Address', 'wpcargo') ); -
wpc_add_sms_shipment_history
actiondo_action( 'wpc_add_sms_shipment_history', $post_id ); -
wpc_multiple_package_header
filterapply_filters( 'wpc_multiple_package_header', esc_html__('Packages', 'wpcargo') ); -
apply_filters( 'wpc_report_search_shipper_name_metakey', 'wpcargo_shipper_name' ); -
wpcargo_add_form_fields
actiondo_action( 'wpcargo_add_form_fields' ); -
do_action( 'wpcargo_before_track_result_form', 10 ); -
apply_filters( 'wpcargo_client_email_attachments', $post_id, $status ); -
wpcargo_example_text
filterapply_filters( 'wpcargo_example_text', ' <tr class="track_form_tr"><td class="track_form_td" colspan="2"><h4>'.__('Ex: 12345, 23456, 34567', 'wpcargo').'</h4></td></tr>' ); -
do_action( 'wpcargo_extra_send_email_notification', $post_id, $wpcargo_status ); -
wpcargo_multi_track_form
actiondo_action( 'wpcargo_multi_track_form', $attr, 10 ); -
wpcargo_print_invoice_label
filterapply_filters( 'wpcargo_print_invoice_label', __( 'Print Track Result', 'wpcargo') ); -
do_action( 'wpcargo_shipment_history_data', $shipment ); -
wpcargo_status_option
filterapply_filters( 'wpcargo_status_option', $status ); -
wpcargo_tn_form_title
filterapply_filters( 'wpcargo_tn_form_title', __('Enter tracking numbers at once separated by a comma.', 'wpcargo') ); -
wpcargo_tn_no_result_text
filterapply_filters( 'wpcargo_tn_no_result_text', __('No results found!','wpcargo') ); -
wpcargo_tn_placeholder
filterapply_filters( 'wpcargo_tn_placeholder', __('Enter Tracking Number', 'wpcargo' ) ); -
wpcargo_tn_submit_val
filterapply_filters( 'wpcargo_tn_submit_val', __( 'Track Now', 'wpcargo' ) ); -
wpcargo_track_form
actiondo_action( 'wpcargo_track_form', $attr, 10 ); -
wpcargo_volumetric_divisor
filterapply_filters( 'wpcargo_volumetric_divisor', wpcargo_package_settings()->divisor, $shipment_id ); -
additional_merge_tags
actiondo_action( 'additional_merge_tags' ); -
do_action( 'after_wpcargo_shipment_history', $shipment->ID ); -
do_action( 'after_wpcargo_shipment_history_map', $shipment->ID ); -
all_wpcargo_users
filterapply_filters( 'all_wpcargo_users', array( 'role__in' => wpcargo_user_roles_list() ) ); -
do_action( 'before_wpcargo_shipment_history_map', $shipment->ID ); -
default_wpcargo_columns
filterapply_filters( 'default_wpcargo_columns', $get_the_wpcargo_tbl ); -
ie_registered_fields
filterapply_filters( 'ie_registered_fields', $wpcargo_meta_data ); -
label_template_url
filterapply_filters( 'label_template_url', $this->print_label_template_callback(), $shipmentDetails ); -
multiple_package_status
filterapply_filters( 'multiple_package_status', $status ); -
result_shipment_details
filterapply_filters( 'result_shipment_details', __('Shipment Information', 'wpcargo') ); -
result_shipment_information
filterapply_filters( 'result_shipment_information', __('Shipment Information', 'wpcargo') ); -
shmap_current_marker_url
filterapply_filters( 'shmap_current_marker_url', WPCARGO_PLUGIN_URL.'/admin/assets/images/current-map.png' ); -
wpc_admin_tbl_list_action
filterapply_filters( 'wpc_admin_tbl_list_action', __('Actions', 'wpcargo') ); -
wpc_admin_tbl_list_agent
filterapply_filters( 'wpc_admin_tbl_list_agent', __('Agent', 'wpcargo') ); -
wpc_admin_tbl_list_category
filterapply_filters( 'wpc_admin_tbl_list_category', __('Category', 'wpcargo') ); -
wpc_admin_tbl_list_date
filterapply_filters( 'wpc_admin_tbl_list_date', __('Date', 'wpcargo') ); -
wpc_admin_tbl_list_status
filterapply_filters( 'wpc_admin_tbl_list_status', __('Status', 'wpcargo') ); -
apply_filters( 'wpc_admin_tbl_list_tracking_number', __('Tracking Number', 'wpcargo') ); -
apply_filters( 'wpc_admin_tbl_registered_shipper', __('Shipment Owner', 'wpcargo') ); -
wpc_after_get_dynamic_place
actiondo_action( 'wpc_after_get_dynamic_place' ); -
wpc_after_init_map
actiondo_action( 'wpc_after_init_map' ); -
do_action( 'wpc_after_receiver_details_metabox', $post->ID ); -
do_action( 'wpc_after_receiver_details_table', $post->ID ); -
do_action( 'wpc_after_shipment_designation', $post->ID ); -
do_action( 'wpc_after_shipment_details_metabox', $post->ID ); -
do_action( 'wpc_after_shipment_details_table', $post->ID ); -
do_action( 'wpc_after_shipper_details_metabox', $post->ID ); -
do_action( 'wpc_after_shipper_details_table', $post->ID ); -
do_action( 'wpc_before_receiver_details_metabox', $post->ID ); -
do_action( 'wpc_before_receiver_details_table', $post->ID ); -
do_action( 'wpc_before_shipment_details_metabox', $post->ID ); -
do_action( 'wpc_before_shipment_details_table', $post->ID ); -
do_action( 'wpc_before_shipper_details_metabox', $post->ID ); -
do_action( 'wpc_before_shipper_details_table', $post->ID ); -
wpc_email_meta_tags
filterapply_filters( 'wpc_email_meta_tags', $tags ); -
wpc_email_replace_shortcodes
filterapply_filters( 'wpc_email_replace_shortcodes', $replace_shortcodes, $post_id ); -
wpc_hook_merge_export_fields
filterapply_filters( 'wpc_hook_merge_export_fields', array(), get_the_ID() ); -
wpc_hook_merge_export_header
filterapply_filters( 'wpc_hook_merge_export_header', array() ); -
wpc_ie_meta_query
filterapply_filters( 'wpc_ie_meta_query', $meta_query, $_REQUEST ); -
do_action( 'wpc_label_before_header_information', $shipmentDetails['shipmentID'] ); -
do_action( 'wpc_label_header_barcode_information', $shipmentDetails['shipmentID'] ); -
wpc_receiver_details_label
filterapply_filters( 'wpc_receiver_details_label', __('Receiver Details', 'wpcargo' ) ); -
wpc_shipment_details_label
filterapply_filters( 'wpc_shipment_details_label', __('Shipment Details', 'wpcargo' ) ); -
wpc_shipper_details_label
filterapply_filters( 'wpc_shipper_details_label', __('Shipper Details', 'wpcargo' ) ); -
wpcargo_account_query
filterapply_filters( 'wpcargo_account_query', array( 'post_type' => 'wpcargo_shipment', 'posts_per_page' => 12, 'orderby' => 'date', 'order' => 'DESC', 'paged' => $paged, 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'registered_shipper', 'value' => $user_id ), array( 'key' => 'registered_receiver', 'value' => $user_id ), ) ), $shipment_sort ); -
apply_filters( 'wpcargo_admin_email_recipients', $recipients, $post_id, $status ); -
apply_filters( 'wpcargo_admin_email_settings_label', esc_html__('Admin Email Settings', 'wpcargo') ); -
apply_filters( 'wpcargo_admin_mail_notification_message', $message, $post_id ); -
apply_filters( 'wpcargo_admin_notification_email_address', get_option('admin_email') ); -
do_action( 'wpcargo_after_admin_action_column', get_the_ID() ); -
do_action( 'wpcargo_after_admin_mail_notification', $post_id ); -
wpcargo_after_assign_email
actiondo_action( 'wpcargo_after_assign_email', $options ); -
wpcargo_after_bulk_save
actiondo_action( 'wpcargo_after_bulk_save', $post_id, $_REQUEST ); -
do_action( 'wpcargo_after_client_mail_notification', $post_id ); -
do_action( 'wpcargo_after_metabox_section', 10 ); -
do_action( 'wpcargo_after_multi_track_result_form', 10 ); -
do_action( 'wpcargo_after_package_details_script', $shipment ); -
do_action( 'wpcargo_after_package_infomation', $shipment ); -
wpcargo_after_package_row
actiondo_action( 'wpcargo_after_package_row', $shipment ); -
do_action( 'wpcargo_after_package_table_row', $shipment ); -
do_action( 'wpcargo_after_print_waybill_styles' ); -
apply_filters( 'wpcargo_after_reciever_meta_section_sep', 10 ); -
wpcargo_after_save_shipment
actiondo_action( 'wpcargo_after_save_shipment', $post_id, $_POST ); -
wpcargo_after_track_barcode
actiondo_action( 'wpcargo_after_track_barcode', $shipment ); -
wpcargo_after_track_header
actiondo_action( 'wpcargo_after_track_header', $shipment ); -
do_action( 'wpcargo_after_track_receiver_data', $shipment ); -
do_action( 'wpcargo_after_track_result_form', 10 ); -
do_action( 'wpcargo_after_track_shipment_info_data', $shipment ); -
do_action( 'wpcargo_after_track_shipper_data', $shipment ); -
apply_filters( 'wpcargo_assign_email_recipients', $user_info->user_email, $post_id, $user_id, $designation ); -
wpcargo_assign_mail_content
filterapply_filters( 'wpcargo_assign_mail_content', $mail_content, $post_id, $user_id, $designation ); -
wpcargo_barcode_size
filterapply_filters( 'wpcargo_barcode_size', 60 ); -
wpcargo_barcode_type
filterapply_filters( 'wpcargo_barcode_type', 'code128' ); -
wpcargo_barcode_url
filterapply_filters( 'wpcargo_barcode_url', $base64_data, $shipment_id ); -
wpcargo_barcode_url_height
filterapply_filters( 'wpcargo_barcode_url_height', 60 ); -
wpcargo_barcode_url_width
filterapply_filters( 'wpcargo_barcode_url_width', 1 ); -
do_action( 'wpcargo_before_admin_action_column', get_the_ID() ); -
do_action( 'wpcargo_before_metabox_section', 10 ); -
wpcargo_before_track_header
actiondo_action( 'wpcargo_before_track_header', $shipment ); -
do_action( 'wpcargo_before_track_receiver_data', $shipment ); -
do_action( 'wpcargo_before_track_shipment_info_data', $shipment ); -
do_action( 'wpcargo_before_track_shipper_data', $shipment ); -
wpcargo_brand_name
filterapply_filters( 'wpcargo_brand_name', esc_html__('WPCargo', 'wpcargo') ); -
wpcargo_calculate_volume
filterapply_filters( 'wpcargo_calculate_volume', $volume, $shipment_id ); -
wpcargo_calculate_volumetric
filterapply_filters( 'wpcargo_calculate_volumetric', $volumetric, $shipment_id ); -
wpcargo_calculate_weight
filterapply_filters( 'wpcargo_calculate_weight', $weight, $shipment_id ); -
apply_filters( 'wpcargo_calculate_weight_meta', $weight_meta ); -
apply_filters( 'wpcargo_can_track_multiple_shipments', $shipment_numbers ); -
wpcargo_can_track_shipment
filterapply_filters( 'wpcargo_can_track_shipment', $shipment_number ); -
apply_filters( 'wpcargo_client_email_recipients', $recipients, $post_id, $status ); -
apply_filters( 'wpcargo_client_mail_notification_message', $message, $post_id ); -
apply_filters( 'wpcargo_convert_volume_unit_cm', __('cu. m.', 'wpcargo' ) ); -
apply_filters( 'wpcargo_convert_volume_unit_in', __('cu. ft.', 'wpcargo' ) ); -
wpcargo_date_format
filterapply_filters( 'wpcargo_date_format', 'Y-m-d' ); -
wpcargo_datetime_format
filterapply_filters( 'wpcargo_datetime_format', 'Y-m-d H:i a' ); -
apply_filters( 'wpcargo_default_shipment_info', $history_fields ); -
wpcargo_default_status
filterapply_filters( 'wpcargo_default_status', $status ); -
wpcargo_email_settings_label
filterapply_filters( 'wpcargo_email_settings_label', esc_html__('Client Email Settings', 'wpcargo') ); -
apply_filters( "wpcargo_field_generator_{$field_meta}", $field, $field_data, $field_meta, $value, $class ); -
do_action( 'wpcargo_fields_option_settings_group', $options ); -
apply_filters( 'wpcargo_filter_registered_shipper_label', esc_html__('-- All Owners --', 'wpcargo') ); -
apply_filters( 'wpcargo_filter_registered_shipper_option_label', $wpcargo->user_fullname( $shipper_id ), $shipper_id ); -
apply_filters( 'wpcargo_general_settings_label', esc_html__('General Settings', 'wpcargo') ); -
wpcargo_generate_barcodecode
filterapply_filters( 'wpcargo_generate_barcodecode', $base64, $string ); -
wpcargo_generate_qrcode
filterapply_filters( 'wpcargo_generate_qrcode', $base64, $string ); -
apply_filters( 'wpcargo_generated_shipment_number', $shipment_title, $rand_number ); -
wpcargo_get_package_data
filterapply_filters( 'wpcargo_get_package_data', $packages, $shipment_id, $meta_key ); -
wpcargo_history_fields
filterapply_filters( 'wpcargo_history_fields', $history_fields ); -
wpcargo_is_title_exist_sql
filterapply_filters( 'wpcargo_is_title_exist_sql', $sql, $title ); -
apply_filters( "wpcargo_locate_admin_template_{$file_slug}", $template_path ); -
apply_filters( "wpcargo_locate_template_{$file_slug}", $template_path ); -
wpcargo_map_labels
filterapply_filters( 'wpcargo_map_labels', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' ); -
wpcargo_map_settings_label
filterapply_filters( 'wpcargo_map_settings_label', esc_html__('Map Settings', 'wpcargo') ); -
do_action( 'wpcargo_multi_track_result_form', 10 ); -
apply_filters( 'wpcargo_package_actual_weight', number_format( $weight, $decimal, '.', ''), $shipment_id ); -
apply_filters( 'wpcargo_package_actual_weight_label', __('Total Actual Weight :', 'wpcargo') ); -
wpcargo_package_admin_enable
filterapply_filters( 'wpcargo_package_admin_enable', $wpc_mp_enable_admin ); -
apply_filters( 'wpcargo_package_cm_volume_unit', 'kg.' ); -
apply_filters( 'wpcargo_package_decimal_place', 2 ); -
do_action( 'wpcargo_package_details_script' ); -
wpcargo_package_dim_meta
filterapply_filters( 'wpcargo_package_dim_meta', $dim_meta ); -
wpcargo_package_dim_units
filterapply_filters( 'wpcargo_package_dim_units', $units ); -
wpcargo_package_divisor_cm
filterapply_filters( 'wpcargo_package_divisor_cm', $woointeg_dim_divisor ); -
wpcargo_package_divisor_inc
filterapply_filters( 'wpcargo_package_divisor_inc', $woointeg_dim_divisor_inc ); -
wpcargo_package_fields
filterapply_filters( 'wpcargo_package_fields', $package_fields ); -
apply_filters( 'wpcargo_package_frontend_enable', $wpc_mp_enable_frontend ); -
apply_filters( 'wpcargo_package_inc_volume_unit', 'lbs.' ); -
wpcargo_package_postmeta
filterapply_filters( 'wpcargo_package_postmeta', 'wpc-multiple-package' ); -
wpcargo_package_qty_meta
filterapply_filters( 'wpcargo_package_qty_meta', 'wpc-pm-qty' ); -
wpcargo_package_settings
filterapply_filters( 'wpcargo_package_settings', $package_settings ); -
wpcargo_package_volume
filterapply_filters( 'wpcargo_package_volume', number_format( $volume, $decimal, '.', ''), $shipment_id, $volume ); -
wpcargo_package_volume_label
filterapply_filters( 'wpcargo_package_volume_label', __('Total Volume :', 'wpcargo') ); -
wpcargo_package_volumetric
filterapply_filters( 'wpcargo_package_volumetric', number_format( $volumetric, $decimal, '.', ''), $shipment_id, $volumetric ); -
apply_filters( 'wpcargo_package_volumetric_label', __('Total Volumetric Weight :', 'wpcargo') ); -
wpcargo_package_weight_meta
filterapply_filters( 'wpcargo_package_weight_meta', 'wpc-pm-weight' ); -
wpcargo_package_weight_units
filterapply_filters( 'wpcargo_package_weight_units', $units ); -
wpcargo_pagination_defaults
filterapply_filters( 'wpcargo_pagination_defaults', $defaults ); -
wpcargo_prefix
filterapply_filters( 'wpcargo_prefix', $prefix ); -
wpcargo_prefix_extra
filterapply_filters( 'wpcargo_prefix_extra', $this->prefix ); -
wpcargo_print_barcode_sizes
filterapply_filters( 'wpcargo_print_barcode_sizes', $barcode_sizes ); -
wpcargo_print_fonts
filterapply_filters( 'wpcargo_print_fonts', $fonts ); -
apply_filters( 'wpcargo_print_label_template_copies', $copies ); -
wpcargo_print_layout_label
filterapply_filters( 'wpcargo_print_layout_label', esc_html__('Print Layout', 'wpcargo') ); -
wpcargo_qrcode_enable
filterapply_filters( 'wpcargo_qrcode_enable', false ); -
apply_filters( 'wpcargo_receiver_label_filter', esc_html__('Receiver Name', 'wpcargo') ); -
wpcargo_receiver_meta_filter
filterapply_filters( 'wpcargo_receiver_meta_filter', 'wpcargo_receiver_name' ); -
do_action( 'wpcargo_receiver_meta_section', 10 ); -
apply_filters( 'wpcargo_registered_shipper_option_label', $wpcargo->user_fullname( $user->ID ), $user->ID ); -
apply_filters( 'wpcargo_report_settings_label', esc_html__('Reports', 'wpcargo') ); -
wpcargo_set_status
filterapply_filters( 'wpcargo_set_status', $status ); -
apply_filters( 'wpcargo_shipment_details_label', esc_html__('Shipment Details', 'wpcargo') ); -
apply_filters( 'wpcargo_shipment_history_before_save', $history_array, $_POST ); -
do_action( 'wpcargo_shipment_history_data_editable', $shipment ); -
wpcargo_shipment_label
filterapply_filters( 'wpcargo_shipment_label', esc_html__('Shipment Label', 'wpcargo') ); -
do_action( 'wpcargo_shipment_meta_section', 10 ); -
do_action( 'wpcargo_shipment_misc_actions_form', $post ); -
apply_filters( 'wpcargo_shipment_query_filter', array( ) ); -
apply_filters( 'wpcargo_shipment_settings_label', esc_html__('Shipment Settings', 'wpcargo') ); -
wpcargo_shipper_label_filter
filterapply_filters( 'wpcargo_shipper_label_filter', esc_html__('Shipper Name', 'wpcargo') ); -
wpcargo_shipper_meta_filter
filterapply_filters( 'wpcargo_shipper_meta_filter', 'wpcargo_shipper_name' ); -
wpcargo_shipper_meta_section
actiondo_action( 'wpcargo_shipper_meta_section', 10 ); -
wpcargo_shortcode_meta_value
filterapply_filters( 'wpcargo_shortcode_meta_value', $meta_value, $shortcode, $post_id ); -
wpcargo_suffix
filterapply_filters( 'wpcargo_suffix', $suffix ); -
wpcargo_suffix_extra
filterapply_filters( 'wpcargo_suffix_extra', $this->suffix ); -
wpcargo_time_format
filterapply_filters( 'wpcargo_time_format', 'H:i a' ); -
wpcargo_track_meta
filterapply_filters( 'wpcargo_track_meta', 'wpcargo_tracking_number' ); -
wpcargo_track_result_form
actiondo_action( 'wpcargo_track_result_form', 10 ); -
apply_filters( 'wpcargo_track_result_shipment_number', $tracknumber ); -
apply_filters( 'wpcargo_track_shipment_status_result_title', __( 'Shipment Status: ', 'wpcargo' ) ); -
apply_filters( 'wpcargo_trackform_multiple_shipment_numbers_query', $sql, $shipment_numbers ); -
wpcargo_user_roles_list
filterapply_filters( 'wpcargo_user_roles_list', array( 'administrator', 'wpc_shipment_manager', 'wpcargo_branch_manager', 'wpcargo_driver', 'wpcargo_client', 'cargo_agent' ) ); -
wpcargo_volume_divisor
filterapply_filters( 'wpcargo_volume_divisor', $divisor, $shipment_id ); -
wpcfe_after_invoice_content
actiondo_action( 'wpcfe_after_invoice_content', $shipmentDetails ); -
wpcfe_before_invoice_content
actiondo_action( 'wpcfe_before_invoice_content', $shipmentDetails ); -
wpcfe_end_invoice_section
actiondo_action( 'wpcfe_end_invoice_section', $shipmentDetails ); -
wpcfe_invoice_barcode_info
actiondo_action( 'wpcfe_invoice_barcode_info', $shipmentDetails ); -
wpcfe_invoice_receiver_info
actiondo_action( 'wpcfe_invoice_receiver_info', $shipmentDetails ); -
wpcfe_invoice_shipper_info
actiondo_action( 'wpcfe_invoice_shipper_info', $shipmentDetails ); -
wpcfe_invoice_site_info
actiondo_action( 'wpcfe_invoice_site_info', $shipmentDetails ); -
wpcfe_middle_invoice_section
actiondo_action( 'wpcfe_middle_invoice_section', $shipmentDetails ); -
wpcfe_start_invoice_section
actiondo_action( 'wpcfe_start_invoice_section', $shipmentDetails );
Generated from WPCargo Track & Trace's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: