Last active
September 16, 2019 10:35
-
-
Save webdados/b6939b171c0e86013f057a23d6a17bb5 to your computer and use it in GitHub Desktop.
Options for
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 each filter to your (child-)theme functions.php file if you want to change any configuration */ | |
//Separator between options (default: new line) | |
add_filter( 'invoicexpress_woocommerce_eo_separator', function( $string ) { | |
return PHP_EOL; | |
} ); | |
//Start before each option (default: '- ') | |
add_filter( 'invoicexpress_woocommerce_eo_start', function( $string ) { | |
return '- '; | |
} ); | |
//Show label (default: true) | |
add_filter( 'invoicexpress_woocommerce_eo_show_label', function( $bool ) { | |
return true; | |
} ); | |
//Separator between label and value (default: ': ') | |
add_filter( 'invoicexpress_woocommerce_eo_label_separator', function( $string ) { | |
return ': '; | |
} ); | |
//Separator between values of the same option (default: ', ') | |
add_filter( 'invoicexpress_woocommerce_eo_value_separator', function( $string ) { | |
return ', '; | |
} ); | |
//Show quantity (if > 1) (default: true) | |
add_filter( 'invoicexpress_woocommerce_eo_show_quantity', function( $bool ) { | |
return true; | |
} ); | |
//Separator between quantity and value (default: ' × ') | |
add_filter( 'invoicexpress_woocommerce_eo_quantity_separator', function( $string ) { | |
return ' × '; | |
} ); | |
//Show price (if != 0) (default: false) | |
add_filter( 'invoicexpress_woocommerce_eo_show_price', function( $bool ) { | |
return false; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment