Created
December 17, 2012 22:52
-
-
Save claudiosanches/4323165 to your computer and use it in GitHub Desktop.
Jigoshop Correios - Definir um pacote padrão.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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