Created
March 22, 2022 12:56
-
-
Save bporcelli/c173e021d7e51e91d9d781912ace3a69 to your computer and use it in GitHub Desktop.
[MarketShip] Change usable box volume for packing.
This file contains 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 | |
/** | |
* Changes the usable box volume for MarketShip's packing algorithm to 100%. | |
* | |
* @param float $usable_volume Usable volume for packing. | |
* @param float $total_volume Total box volume. | |
* | |
* @return float Updated usable volume. | |
*/ | |
function marketship_change_usable_box_volume( $usable_volume, $total_volume ) { | |
return $total_volume; | |
} | |
add_filter( 'marketship_usable_box_volume', 'marketship_change_usable_box_volume', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment