Skip to content

Instantly share code, notes, and snippets.

@webdados
Last active September 16, 2019 10:35
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 webdados/b6939b171c0e86013f057a23d6a17bb5 to your computer and use it in GitHub Desktop.
Save webdados/b6939b171c0e86013f057a23d6a17bb5 to your computer and use it in GitHub Desktop.
Options for
<?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 ' &times; ';
} );
//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