woocommerce_correios_carta_registrada_costs

Get costs.

Description

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

Costs based in 28/06/2016 from: http://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/carta

Returns (array)

Parameters (3)

0. $array — Optional. (callback) => array( '20' => array( 'R' => 6.00, 'AR' => 10.30, 'MP' => 11.50, 'AR+MP' => 15.80, ), '50' => array( 'R' => 6.65, 'AR' => 10.95, 'MP' => 12.15, 'AR+MP' => 16.45, ), '100' => array( 'R' => 7.55, 'AR' => 11.85, 'MP' => 13.05, 'AR+MP' => 17.35, ), '150' => array( 'R' => 8.30, 'AR' => 12.60, 'MP' => 13.80, 'AR+MP' => 18.10, ), '200' => array( 'R' => 9.00, 'AR' => 13.30, 'MP' => 14.50, 'AR+MP' => 18.80, ), '250' => array( 'R' => 9.70, 'AR' => 14.00, 'MP' => 15.20, 'AR+MP' => 19.50, ), '300' => array( 'R' => 10.50, 'AR' => 14.80, 'MP' => 16.00, 'AR+MP' => 20.30, ), '350' => array( 'R' => 11.25, 'AR' => 15.55, 'MP' => 16.75, 'AR+MP' => 21.05, ), '400' => array( 'R' => 11.95, 'AR' => 16.25, 'MP' => 17.45, 'AR+MP' => 21.75, ), '450' => array( 'R' => 12.65, 'AR' => 16.95, 'MP' => 18.15, 'AR+MP' => 22.45, ), '500' => array( 'R' => 13.40, 'AR' => 17.70, 'MP' => 18.90, 'AR+MP' => 23.20, ), )
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_carta_registrada_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_carta_registrada_costs callback 
  2. function filter_woocommerce_correios_carta_registrada_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_carta_registrada_costs', 'filter_woocommerce_correios_carta_registrada_costs', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_correios_carta_registrada_costs', 'filter_woocommerce_correios_carta_registrada_costs', 10, 3 ); 

Defined (1)

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

/includes/shipping/class-wc-correios-shipping-carta-registrada.php  
  1. return apply_filters( 'woocommerce_correios_carta_registrada_costs', array(