woocommerce_correios_impresso_urgente_costs

Get costs.

Description

(array) apply_filters( 'woocommerce_correios_impresso_urgente_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.50, '50' => 2.10, '100' => 2.85, '150' => 3.50, '200' => 4.10, '250' => 4.80, '300' => 5.40, '350' => 6.05, '400' => 6.60, '450' => 7.30, '500' => 7.90, )
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_urgente_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_urgente_costs callback 
  2. function filter_woocommerce_correios_impresso_urgente_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_urgente_costs', 'filter_woocommerce_correios_impresso_urgente_costs', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_correios_impresso_urgente_costs', 'filter_woocommerce_correios_impresso_urgente_costs', 10, 3 ); 

Defined (1)

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

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