Correios Automático 1.14.0 has 19 actions and 71 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.
// Run your own code when Correios Automático fires an action
add_action( 'woocommerce_email_customer_details', function( $order, $sent_to_admin, $plain_text, $email ) {
// Your code runs here.
}, 10, 4 );
// Change a value Correios Automático is about to use
add_filter( 'infixs_correios_automatico_active_plugins', function( $params ) {
// Change $params here.
return $params;
}, 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
-
/** * Customer details. */ do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -
/** * Order details. */ do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); -
/** * Order meta. */ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); -
/** * Filters the plugins the dashboard reports as active. */ apply_filters( 'infixs_correios_automatico_active_plugins', $params['activePlugins'] ); -
/** * Fires after an event of the tracking is stored. */ do_action( 'infixs_correios_automatico_after_add_tracking_event', $createdEvent, $event, $tracking, $object ); -
/** * Filters whether the volumes of the shipment may be quoted. */ apply_filters( 'infixs_correios_automatico_calculate_shipping_volumes_passed', true, $volumes, $package, $this ); -
/** * Hook for additional custom styles */ do_action( 'infixs_correios_automatico_calculator_custom_styles', $calculator_styles ); -
/** * Filters the carriers the order list can be filtered by. */ apply_filters( 'infixs_correios_automatico_carrier_shipping_methods', $carriers ); -
/** * Filters the finished label payload. */ apply_filters( 'infixs_correios_automatico_label_data', $data, $order, $context ); -
/** * Filters the return address printed on this label. */ apply_filters( 'infixs_correios_automatico_label_sender', null, $order, $context ); -
/** * Filters how many volumes one shipment may be broken into. */ apply_filters( 'infixs_correios_automatico_max_volumes', 10, $package, $this ); -
/** * Filters the Correios API instance used to act on an existing object. */ apply_filters( 'infixs_correios_automatico_object_correios_api', $this->correiosApi, $object_code, $source ); -
/** * Filters how tracking codes are grouped before being queried. */ apply_filters( 'infixs_correios_automatico_object_trackings_batches', [ [ 'api' => null, 'codes' => $tracking_codes ] ], $tracking_codes ); -
/** * Filters the data of the simplified DANFE of the NF-e of an order. */ apply_filters( 'infixs_correios_automatico_order_danfe', null, $order, $context ); -
/** * Filters the NF-e of an order before the order metas are read. */ apply_filters( 'infixs_correios_automatico_order_invoice', null, $order, $context ); -
/** * Filters the state of the NF-e of an order shown in the orders panel. */ apply_filters( 'infixs_correios_automatico_order_invoice_status', $default, $order, [ 'vendor_id' => $context['vendor_id'], 'invoice' => $context['invoice'], 'waiting' => $context['waiting'], ] ); -
/** * Filters the SQL condition of a pendency an extension registered. */ apply_filters( 'infixs_correios_automatico_order_pending_condition', null, $kind ); -
/** * Filters the pendencies an extension adds to the filter of the order list. */ apply_filters( 'infixs_correios_automatico_order_pending_kinds', [] ); -
/** * Filters the portion of an order a label or prepost is built from. */ apply_filters( 'infixs_correios_automatico_order_scope', $scope, $order, $context ); -
/** * Filters the vendor an order operation is scoped to. */ apply_filters( 'infixs_correios_automatico_order_vendor_id', $vendor_id, $order_id, $context, $adapter ); -
/** * Filters the events read as "out for delivery to the recipient". */ apply_filters( 'infixs_correios_automatico_out_for_delivery_events', self::OUT_FOR_DELIVERY ); -
/** * Filters the vendor a cart package belongs to. */ apply_filters( 'infixs_correios_automatico_package_vendor_id', 0, $package ); -
/** * Filters how many units a shipment may have to be stacked unit by unit. */ apply_filters( 'infixs_correios_automatico_packing_max_units', 200, $package, $this ); -
/** * Filters the address of the Infixs Ship API. */ apply_filters( 'infixs_correios_automatico_prepaid_api_url', $url ); -
/** * Filters the address of the Infixs Ship site. */ apply_filters( 'infixs_correios_automatico_prepaid_app_url', $url ); -
/** * Filters the Correios API instance used to create the prepost. */ apply_filters( 'infixs_correios_automatico_prepost_correios_api', $this->correiosApi, $prepost ); -
/** * Filters the order items included in the prepost contents. */ apply_filters( 'infixs_correios_automatico_prepost_order_items', $order->get_items(), $this->order_id, $this ); -
/** * Filters the sender used on the prepost. */ apply_filters( 'infixs_correios_automatico_prepost_sender', $sender, $order_id, $vendor_id ); -
/** * Filters whether a prepost uses the NF-e of the order. */ apply_filters( 'infixs_correios_automatico_prepost_use_order_invoice', true, $order, $shipping_item_id ); -
/** * Filters the Correios product code used to quote a package. */ apply_filters( 'infixs_correios_automatico_product_code', $this->get_product_code(), $package, $this ); -
/** * Filters the fiscal document a reverse prepost travels with. */ apply_filters( 'infixs_correios_automatico_reverse_prepost_fiscal_document', $document, $order, $shipping_item_id, $outbound ); -
/** * Allows overriding the package data used in the quote, keeping the dimensions * and the weight informed manually (in an order, for example) instead of the * ones calculated from the products. */ apply_filters( 'infixs_correios_automatico_shipping_cost_data', $shipping_cost, $package, $this ); -
infixs_correios_automatico_shipping_item_carrier
filter Used by 2 plugins → Copy link Customise this hook/** * Filters the carrier that owns a shipping line the base plugin does not * recognize. */ apply_filters( 'infixs_correios_automatico_shipping_item_carrier', null, $item ); -
/** * Filters the Correios API instance used to fetch the delivery time. */ apply_filters( 'infixs_correios_automatico_shipping_time_correios_api', $this->correiosApi, $shipping_time ); -
/** * Filters whether the tracking section shows on the customer order page. */ apply_filters( 'infixs_correios_automatico_show_order_tracking', $show_tracking, $order->getOrder(), $objects ); -
/** * Filters the sync of a tracking code owned by another carrier. */ apply_filters( 'infixs_correios_automatico_sync_tracking_code', null, $tracking ); -
/** * Filters the vendor a tracking code belongs to. */ apply_filters( 'infixs_correios_automatico_tracking_vendor_id', isset( $data['vendor_id'] ) ? $data['vendor_id'] : null, $order_id, $code, $data ); -
/** * Filters the transient key used to cache a shipping lookup. */ apply_filters( 'infixs_correios_automatico_transient_key', $transient_key, $type, $package, $this ); -
/** * Filters the filler that packs the volumes of a shipment. */ apply_filters( 'infixs_correios_automatico_volume_filler', null, $limits, $package, $this, $factory ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'infixs_correios_automatico_email_tracking_code_url', $html, $tracking_code, $this->object ); -
do_action( 'infixs_correios_automatico_correios_auth_failed', $response ); -
apply_filters( 'infixs_correios_automatico_dashboard_notices', [] ); -
apply_filters( 'infixs_correios_automatico_default_package', $this->get_package_data() ); -
do_action( 'infixs_correios_automatico_notification_created', (int) $existing->id, $type, $level ); -
apply_filters( 'infixs_correios_automatico_package_height', max( $cubage['height'], $this->min_height ) ); -
apply_filters( 'infixs_correios_automatico_package_length', max( $cubage['length'], $this->min_length ) ); -
apply_filters( 'infixs_correios_automatico_package_weight', max( $data['weight'], $this->min_weight ) ); -
apply_filters( 'infixs_correios_automatico_package_width', max( $cubage['width'], $this->min_width ) ); -
do_action( 'infixs_correios_automatico_prepost_controller_created', $params['order_id'], $prepost ); -
do_action( 'infixs_correios_automatico_prepost_created', $order_id, $created_prepost ); -
do_action( 'infixs_correios_automatico_shipping_cost_failed', is_wp_error( $response ) ? $response : new \WP_Error( 'correios_invalid_response', __( 'Resposta inválida dos Correios.', 'infixs-correios-automatico' ) ), $shipping_cost ); -
apply_filters( 'correios_automatico_get_shipping_cost', new \WP_Error( 'correios_automatico_get_shipping_cost', 'Erro ao calcular o frete, método não encontrado.' ), $shipping_cost, [] ); -
apply_filters( 'infixs_correios_automatico_add_tracking_event', [ 'code' => $event['codigo'], 'type' => $event['tipo'], 'description' => $event['descricao'], 'detail' => $event['detalhe'] ?? null, 'location_type' => $event['unidade']['tipo'] ?? null, 'location_address' => $event['unidade']['endereco']['logradouro'] ?? null, 'location_number' => $event['unidade']['endereco']['numero'] ?? null, 'location_neighborhood' => $event['unidade']['endereco']['bairro'... ); -
apply_filters( 'infixs_correios_automatico_admin_script_orders_params', [ 'restUrl' => Container::routes()->get_rest_url(), 'nonce' => wp_create_nonce( 'wp_rest' ), 'adminUrl' => admin_url( 'admin.php?page=infixs-correios-automatico' ), 'ajaxUrl' => admin_url( 'admin-ajax.php' ), ] ); -
do_action( 'infixs_correios_automatico_after_add_tracking_code', $code, $order_id ); -
do_action( 'infixs_correios_automatico_before_save_general_settings', $data ); -
infixs_correios_automatico_calculate_shipping_cost_correios_api
filter Copy link Customise this hookapply_filters( 'infixs_correios_automatico_calculate_shipping_cost_correios_api', $this->correiosApi, $shipping_cost ); -
apply_filters( 'infixs_correios_automatico_calculate_shipping_cost_passed', true, $shipping_cost, $package, $this ); -
infixs_correios_automatico_calculate_shipping_has_active_contract
filter Copy link Customise this hookapply_filters( 'infixs_correios_automatico_calculate_shipping_has_active_contract', $has_active_contract, $shipping_cost ); -
apply_filters( 'infixs_correios_automatico_calculate_shipping_origin_postcode', $this->origin_postcode, $package, $this ); -
apply_filters( 'infixs_correios_automatico_calculate_single_shipping_package', [ 'contents' => [ 0 => [ 'product_id' => $product->get_id(), 'variation_id' => $variation_id, 'data' => $product, 'quantity' => $quantity, 'line_total' => $package_cost, 'line_subtotal' => $package_cost, 'formatted_data' => (object) [ 'id' => $product->get_id(), 'name' => $product->get_name(), 'is_virtual' => $product->get_virtual(), 'unitary_value' => (float) $product->get_price(), 'quantity' ... ); -
do_action( 'infixs_correios_automatico_correios_auth_success' ); -
apply_filters( 'infixs_correios_automatico_dashboard_global_params', $scriptData ); -
apply_filters( 'infixs_correios_automatico_email_delivered_message', $this->format_string( $message ), $this->object ); -
apply_filters( 'infixs_correios_automatico_email_out_for_delivery_message', $this->format_string( $message ), $this->object ); -
apply_filters( 'infixs_correios_automatico_email_preparing_to_ship_message', $this->format_string( $message ), $this->object ); -
apply_filters( 'infixs_correios_automatico_email_returning_message', $this->format_string( $message ), $this->object ); -
apply_filters( 'infixs_correios_automatico_email_tracking_message', $this->format_string( $message ), $this->object ); -
apply_filters( 'infixs_correios_automatico_email_waiting_pickup_message', $this->format_string( $message ), $this->object ); -
do_action( 'infixs_correios_automatico_get_shipping_cost', $this ); -
apply_filters( 'infixs_correios_automatico_icons', [ [ 'id' => 'truck-01', 'name' => 'Truck 01', 'content' => '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 20 20"><path fill="currentColor" d="M1.5 7.882V4.118a1 1 0 0 1 .553-.894l3-1.5a1 1 0 0 1 .894 0l3 1.5a1 1 0 0 1 .553.894v3.764a1 1 0 0 1-.553.895l-3 1.5a1 1 0 0 1-.894 0l-3-1.5a1 1 0 0 1-.553-.895m1.04-3.576a.5.5 0 0 0 .266.655L5 5.887V8.5a.5.5 0 1 0 1 0V5.887l... ); -
apply_filters( 'infixs_correios_automatico_linkable_method_ids', [ 'free_shipping', 'flat_rate' ] ); -
apply_filters( 'infixs_correios_automatico_order_data', $data, $this->order ); -
do_action( 'infixs_correios_automatico_plugin_loaded' ); -
apply_filters( 'infixs_correios_automatico_prepare_general_settings', $sanitized_settings ); -
apply_filters( 'infixs_correios_automatico_prepost_get_packet_data', [], $this ); -
apply_filters( 'infixs_correios_automatico_prepost_metabox_cancel_button_class', 'button' ); -
apply_filters( 'infixs_correios_automatico_rate', $rate, $package ); -
do_action( 'infixs_correios_automatico_register_routes', $this->get_namespace() ); -
infixs_correios_automatico_rest_shop_order_object_tracking_codes
filter Copy link Customise this hookapply_filters( 'infixs_correios_automatico_rest_shop_order_object_tracking_codes', $response_codes ); -
do_action( 'infixs_correios_automatico_reverse_prepost_created', $order_id, $created_prepost ); -
apply_filters( 'infixs_correios_automatico_save_debug_settings', $updated_log_settings, $data ); -
apply_filters( 'infixs_correios_automatico_save_general_settings', $updated_settings, $data ); -
apply_filters( 'infixs_correios_automatico_service_cancel_prepost', new \WP_Error( 'cancel_prepost_pro_feature', 'Essa funcionalidade é uma feature da versão PRO, considerer adquirir a versão PRO para utilizar essa funcionalidade.', [ 'status' => 400, 'buy_pro_url' => Plugin::PRO_URL ] ), $prepost_id, $this->prepostRepository, $this->correiosService ); -
apply_filters( 'infixs_correios_automatico_settings', [ 'general' => [ 'autofill_address' => 'yes', 'calculate_shipping_product_page' => 'yes', 'calculate_shipping_product_page_position' => 'description_before', 'show_order_tracking_form' => 'yes', 'show_order_label_form' => 'yes', 'show_order_prepost_form' => 'yes', 'mask_postcode' => 'yes', 'send_email_prepost' => 'no', 'tracking_compatiblity' => 'no', 'simple_cart_shipping_calculator' => 'yes',... ); -
apply_filters( 'infixs_correios_automatico_tracking_create', $params['code'], $params ); -
apply_filters( 'infixs_correios_automatico_tracking_delete', $request['id'], $request );
Generated from Correios Automático'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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: