Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created December 17, 2012 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claudiosanches/4323165 to your computer and use it in GitHub Desktop.
Save claudiosanches/4323165 to your computer and use it in GitHub Desktop.
Jigoshop Correios - Definir um pacote padrão.
<?php
/**
* Pacote padrão.
*
* @param array $measures Medidas antigas.
*
* @return array Novo array com as medidas padrões.
*/
function custom_default_package( $measures ) {
$measures = array(
'height' => array( '30' ),
'length' => array( '30' ),
'width' => array( '30' ),
'weight' => '2'
);
return $measures;
}
add_filter( 'jigocorreios_default_package', 'custom_default_package' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment