woocommerce_correios_impresso_normal_costs

Get costs.

Description

(array) apply_filters( 'woocommerce_correios_impresso_normal_costs', (callback) $array, (unknown) $this_id, (unknown) $this_instance_id ); 

Costs based in 01/02/2017 from: https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/impresso-normal

Returns (array)

Parameters (3)

0. $array — Optional. (callback) => array( '20' => 1.05, '50' => 1.60, '100' => 2.10, '150' => 2.55, '200' => 3.00, '250' => 3.50, '300' => 3.95, '350' => 4.40, '400' => 4.90, '450' => 5.40, '500' => 5.90, '550' => 6.25, '600' => 6.70, '650' => 7.15, '700' => 7.50, '750' => 7.90, '800' => 8.30, '850' => 8.75, '900' => 9.25, '950' => 9.65, '1000' => 10.05, )
The array.
1. $this_id (unknown)
The this id.
2. $this_instance_id (unknown)
The this instance id.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'woocommerce_correios_impresso_normal_costs', $array, $this_id, $this_instance_id ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_correios_impresso_normal_costs callback 
  2. function filter_woocommerce_correios_impresso_normal_costs( $array, $this_id, $this_instance_id ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_correios_impresso_normal_costs', 'filter_woocommerce_correios_impresso_normal_costs', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_correios_impresso_normal_costs', 'filter_woocommerce_correios_impresso_normal_costs', 10, 3 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/shipping/class-wc-correios-shipping-impresso-normal.php  
  1. return apply_filters( 'woocommerce_correios_impresso_normal_costs', array(