Created
June 17, 2017 06:33
-
-
Save digitalchild/ee745bf7480e63d10b84b8eaf12d7ea7 to your computer and use it in GitHub Desktop.
Filter regular price
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 | |
add_filter( 'wcv_product_price', 'add_product_fee' ); | |
function add_product_fee( $field ){ | |
$value = get_post_meta( $field['post_id'], $field['id'], true ); | |
$field[ 'value' ] = $value /* + fee here */ ; | |
return $field; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment