MyParcel 4.26.0 has 9 actions and 17 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 MyParcel fires an action
add_action( 'admin_print_scripts', function() {
// Your code runs here.
}, 10, 1 );
// Change a value MyParcel is about to use
add_filter( 'wc_myparcel_order_package_type', function( $allowedPackageType, $order, $object ) {
// Change $allowedPackageType here.
return $allowedPackageType;
}, 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
-
apply_filters( 'wc_myparcel_order_package_type', $allowedPackageType, $order, $this ); -
apply_filters( 'wcmp_custom_address_field_class', ['form-row-third first'] ); -
apply_filters( 'wc_myparcel_order_delivery_options', $meta, $order ); -
apply_filters( 'wcmp_checkout_fields_priority', 10, 'billing' ); -
admin_print_scripts
actiondo_action( 'admin_print_scripts' ); -
admin_print_styles
actiondo_action( 'admin_print_styles' ); -
deliveryDayFilter
filterapply_filters( 'deliveryDayFilter', true ); -
plugin_locale
filterapply_filters( 'plugin_locale', get_locale(), self::DOMAIN ); -
wc_myparcel_add_consignment
filterapply_filters( 'wc_myparcel_add_consignment', $consignment, $orderSettings ); -
wc_myparcel_check_privs
filterapply_filters( 'wc_myparcel_check_privs', $userCannotManageOrders ); -
apply_filters( 'wc_myparcel_show_delivery_options', $showDeliveryOptions ); -
apply_filters( 'wc_wcmp_delivery_options_location', WCMYPA()->setting_collection->getByName(WCMYPA_Settings::SETTING_DELIVERY_OPTIONS_POSITION) ); -
apply_filters( 'wcmp_formatted_label_description', $formattedLabelDescription, $this->order ); -
wcmp_labels_exported
actiondo_action( 'wcmp_labels_exported', $order_ids ); -
wcmp_settings_validate_input
filterapply_filters( 'wcmp_settings_validate_input', $input, $output ); -
wcmyparcel_email_text
filterapply_filters( 'wcmyparcel_email_text', __('You can track your order with the following Track & Trace link:', 'woocommerce-myparcel'), $order ); -
apply_filters( 'wcmyparcel_myaccount_tracktrace_button', __('Track & Trace', 'woocommerce-myparcel') ); -
apply_filters( 'woocommerce_evaluate_shipping_cost_args', $args, $sum, $flat_rate_method ); -
do_action( 'woocommerce_myparcel_after_delivery_options' ); -
do_action( 'woocommerce_myparcel_after_settings', $active_tab ); -
do_action( 'woocommerce_myparcel_after_settings_page', $active_tab ); -
do_action( 'woocommerce_myparcel_before_delivery_options' ); -
do_action( 'woocommerce_myparcel_before_settings', $active_tab ); -
do_action( 'woocommerce_myparcel_before_settings_page', $active_tab ); -
apply_filters( 'woocommerce_product_dimensions', wc_format_dimensions($dimensions), $product );
Generated from MyParcel'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: