Claudio Sanches icon
eCommerce & WooCommerce

Claudio Sanches hooks reference

  • By Claudio Sanches
  • v4.2.5
  • Updated

Claudio Sanches 4.2.5 has 5 actions and 53 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.

functions.phpyour child theme
// Run your own code when Claudio Sanches 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 Claudio Sanches is about to use
add_filter( 'woocommerce_correios_cws_debug', function( $value ) {
	// Change $value here.
	return $value;
}, 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

  • templates/emails/correios-tracking-code.php line 44 · used in 2 places
    /**
     * Customer details.
     */
    do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
  • templates/emails/correios-tracking-code.php line 29 · used in 2 places
    /**
     * Order details.
     */
    do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
  • templates/emails/correios-tracking-code.php line 36 · used in 2 places
    /**
     * Order meta.
     */
    do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
  • includes/abstracts/class-wc-correios-shipping-carta.php line 288 · used in 3 places
    apply_filters( "woocommerce_correios_{$this->id}_rate", array( 'id' => $this->id . $this->instance_id, 'label' => $this->title, 'cost' => (float) $cost + (float) $fee, 'meta_data' => $meta, ), $this->instance_id, $package );
  • includes/class-wc-correios-autofill-addresses.php line 74 · used in 2 places
    apply_filters( 'woocommerce_correios_cws_debug', false );
  • includes/class-wc-correios-webservice-international.php line 954 · used in 2 places
    apply_filters( 'woocommerce_correios_login', $this->login, $this->id, $this->instance_id, $this->package );
  • includes/class-wc-correios-webservice-international.php line 945 · used in 2 places
    apply_filters( 'woocommerce_correios_origin_postcode', $this->origin_postcode, $this->id, $this->instance_id, $this->package );
  • includes/class-wc-correios-webservice-international.php line 963 · used in 2 places
    apply_filters( 'woocommerce_correios_password', $this->password, $this->id, $this->instance_id, $this->package );
  • includes/abstracts/class-wc-correios-shipping.php line 543 · used in 2 places
    apply_filters( 'woocommerce_correios_shipping_additional_time', $this->additional_time, $package );
  • includes/abstracts/class-wc-correios-shipping-international.php line 199 · used in 2 places
    apply_filters( 'woocommerce_correios_shipping_method_code', $this->code, $this->id, $this->instance_id );
  • includes/abstracts/class-wc-correios-shipping-international.php line 319 · used in 2 places
    apply_filters( 'woocommerce_correios_shipping_methods', array( $rate ), $package );
  • plugin_locale

    filter
    includes/class-wc-correios.php line 52
    apply_filters( 'plugin_locale', determine_locale(), 'woocommerce-correios' );
  • includes/abstracts/class-wc-correios-shipping.php line 552
    apply_filters( 'woocommerce_correios_accepted_error_codes', array( '-33', '-3', '010', '011' ) );
  • includes/class-wc-correios-autofill-addresses.php line 65
    apply_filters( 'woocommerce_correios_addresses_webservice_url', self::$webservice_url );
  • includes/class-wc-correios-autofill-addresses.php line 265
    apply_filters( 'woocommerce_correios_autofill_addresses_force_autofill', 'no' );
  • includes/class-wc-correios-autofill-addresses.php line 86
    apply_filters( 'woocommerce_correios_autofill_addresses_validity', 'forever' );
  • includes/wc-correios-functions.php line 105
    apply_filters( 'woocommerce_correios_available_error_messages', array( '-33' => __( 'System temporarily down. Please try again later.', 'woocommerce-correios' ), '-3' => __( 'Invalid zip code.', 'woocommerce-correios' ), '010' => __( 'Area with delivery temporarily subjected to different periods.', 'woocommerce-correios' ), '011' => __( 'The destination CEP is subject to special delivery conditions by ECT and will be carried out with the addition of up to 7... );
  • includes/shipping/class-wc-correios-shipping-carta-registrada.php line 40
    apply_filters( 'woocommerce_correios_carta_registrada_costs', array( '20' => array( 'R' => 8.40, 'AR' => 14.75, 'MP' => 15.90, 'AR+MP' => 22.25, ), '50' => array( 'R' => 9.20, 'AR' => 15.55, 'MP' => 16.70, 'AR+MP' => 23.05, ), '100' => array( 'R' => 10.30, 'AR' => 16.65, 'MP' => 17.80, 'AR+MP' => 24.15, ), '150' => array( 'R' => 11.15, 'AR' => 17.50, 'MP' => 18.65, 'AR+MP' => 25.00, ), '200' => array( 'R' => 12.00, 'AR' => 18.35, 'MP' => 19.50, 'AR+MP' =>... );
  • includes/shipping/class-wc-correios-shipping-cws.php line 85
    apply_filters( 'woocommerce_correios_cws_allowed_segments_ids', $this->segments );
  • includes/class-wc-correios-cws-connect.php line 379
    apply_filters( 'woocommerce_correios_cws_default_services', array(), $segments );
  • includes/class-wc-correios-cws-connect.php line 319
    apply_filters( 'woocommerce_correios_cws_default_token', array() );
  • includes/class-wc-correios-cws-connect.php line 91
    apply_filters( 'woocommerce_correios_cws_environment', 'production', $this->method_id, $this->instance_id );
  • includes/class-wc-correios-cws-connect.php line 470
    apply_filters( 'woocommerce_correios_cws_get_shipping_cost_args', $args, $this->method_id, $this->instance_id, $package );
  • includes/class-wc-correios-cws-connect.php line 515
    apply_filters( 'woocommerce_correios_cws_get_shipping_time_args', $args, $this->method_id, $this->instance_id, $package );
  • includes/class-wc-correios-cws-connect.php line 561
    apply_filters( 'woocommerce_correios_cws_get_tracking_history_args', $args, $tracking_codes );
  • includes/class-wc-correios-autofill-addresses.php line 203
    apply_filters( 'woocommerce_correios_cws_is_enabled', false );
  • includes/class-wc-correios-cws-connect.php line 582
    apply_filters( 'woocommerce_correios_cws_pre_get_address_from_postcode', array(), $postcode );
  • includes/class-wc-correios-cws-connect.php line 447
    apply_filters( 'woocommerce_correios_cws_pre_get_shipping_cost', array(), $args, $this->method_id, $this->instance_id, $package );
  • includes/class-wc-correios-cws-connect.php line 495
    apply_filters( 'woocommerce_correios_cws_pre_get_shipping_time', array(), $args, $this->method_id, $this->instance_id, $package );
  • includes/class-wc-correios-cws-connect.php line 537
    apply_filters( 'woocommerce_correios_cws_pre_get_tracking_history', array(), $tracking_codes );
  • includes/shipping/class-wc-correios-shipping-cws.php line 439
    apply_filters( 'woocommerce_correios_cws_rate', array( 'id' => $this->id . $this->instance_id, 'label' => $label, 'cost' => (float) $cost + (float) $fee, 'meta_data' => $meta, ), $this->id, $this->instance_id, $package );
  • includes/class-wc-correios-cws-connect.php line 290
    apply_filters( 'woocommerce_correios_cws_services_list', $data );
  • includes/class-wc-correios-cws-connect.php line 92
    apply_filters( 'woocommerce_correios_cws_user_data', array(), $this->method_id, $this->instance_id );
  • includes/class-wc-correios-package.php line 211
    apply_filters( 'woocommerce_correios_default_package', $this->get_package_data() );
  • includes/emails/class-wc-correios-tracking-email.php line 158
    apply_filters( 'woocommerce_correios_email_tracking_code_url', $html, $tracking_code, $this->object );
  • includes/emails/class-wc-correios-tracking-email.php line 145
    apply_filters( 'woocommerce_correios_email_tracking_message', $this->format_string( $message ), $this->object );
  • includes/class-wc-correios-autofill-addresses.php line 51
    apply_filters( 'woocommerce_correios_enable_autofill_addresses', false );
  • includes/class-wc-correios-tracking-history.php line 42
    apply_filters( 'woocommerce_correios_enable_tracking_history', false );
  • includes/wc-correios-functions.php line 78
    apply_filters( 'woocommerce_correios_get_estimating_delivery', $name, $days, $additional_days );
  • includes/shipping/class-wc-correios-shipping-impresso-normal.php line 61
    apply_filters( 'woocommerce_correios_impresso_additional_cost_per_kg', $this->additional_cost_per_kg, $this->id, $this->instance_id );
  • includes/shipping/class-wc-correios-shipping-impresso-normal.php line 77
    apply_filters( 'woocommerce_correios_impresso_normal_costs', array( '20' => 1.55, '50' => 2.25, '100' => 2.90, '150' => 3.55, '200' => 4.25, '250' => 4.85, '300' => 5.55, '350' => 6.15, '400' => 6.90, '450' => 7.55, '500' => 8.25, '550' => 8.75, '600' => 9.40, '650' => 10.00, '700' => 10.45, '750' => 11.05, '800' => 11.60, '850' => 12.25, '900' => 12.95, '950' => 13.50, '1000' => 14.00, ), $this->id, $this->instance_id );
  • includes/shipping/class-wc-correios-shipping-impresso-urgente.php line 50
    apply_filters( 'woocommerce_correios_impresso_urgente_costs', array( '20' => 1.55, '50' => 2.15, '100' => 2.95, '150' => 3.60, '200' => 4.20, '250' => 4.95, '300' => 5.55, '350' => 6.20, '400' => 6.80, '450' => 7.50, '500' => 8.10, ), $this->id, $this->instance_id );
  • includes/class-wc-correios-webservice-international.php line 677
    apply_filters( 'woocommerce_correios_international_allowed_countries', array( 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', ... );
  • includes/class-wc-correios-webservice-international.php line 1035
    apply_filters( 'woocommerce_correios_international_shipping_args', array( 'cepOrigem' => wc_correios_sanitize_postcode( $this->get_origin_postcode() ), 'sgPaisDestino' => $this->get_destination_country(), 'coCidadeDestino' => $this->country_first_city[ $this->get_destination_country() ], 'altura' => $this->get_height(), 'largura' => $this->get_width(), 'diametro' => $this->get_diameter(), 'comprimento' => $this->get_length(), 'psObjeto' => $this->get_weight(),... );
  • includes/class-wc-correios-package.php line 224
    apply_filters( 'woocommerce_correios_package_height', $cubage['height'] );
  • includes/class-wc-correios-package.php line 226
    apply_filters( 'woocommerce_correios_package_length', $cubage['length'] );
  • includes/class-wc-correios-package.php line 227
    apply_filters( 'woocommerce_correios_package_weight', $data['weight'] );
  • includes/class-wc-correios-package.php line 225
    apply_filters( 'woocommerce_correios_package_width', $cubage['width'] );
  • includes/class-wc-correios-webservice.php line 527
    apply_filters( 'woocommerce_correios_shipping_args', array( 'nCdServico' => $this->service, 'nCdEmpresa' => $this->get_login(), 'sDsSenha' => $this->get_password(), 'sCepDestino' => wc_correios_sanitize_postcode( $this->destination_postcode ), 'sCepOrigem' => wc_correios_sanitize_postcode( $this->get_origin_postcode() ), 'nVlAltura' => $this->get_height(), 'nVlLargura' => $this->get_width(), 'nVlDiametro' => $this->get_diameter(), 'nVlComprimento... );
  • includes/shipping/class-wc-correios-shipping-cws.php line 375
    apply_filters( 'woocommerce_correios_shipping_service_code', $code, $this->id, $this->instance_id );
  • includes/shipping/class-wc-correios-shipping-cws.php line 389
    apply_filters( 'woocommerce_correios_shipping_service_name', $name, $code, $this->id, $this->instance_id );
  • includes/admin/views/html-admin-support.php line 12
    apply_filters( 'woocommerce_correios_support_us', true );
  • includes/class-wc-correios-webservice-international.php line 661
    apply_filters( 'woocommerce_correios_webservice_international_url', $this->webservice_base . $this->service . '?', $this->id, $this->instance_id, $this->package );
  • includes/class-wc-correios-webservice.php line 416
    apply_filters( 'woocommerce_correios_webservice_url', $this->webservice, $this->id, $this->instance_id, $this->package );
  • templates/emails/correios-tracking-code.php line 15
    do_action( 'woocommerce_email_header', $email_heading, $email );

Generated from Claudio Sanches'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: