• Resolved Designrest

    (@designrest)


    How to Remove currency symbol in PDF?
    I don’t want to use Any currency symbol in pdf

    • This topic was modified 4 years, 4 months ago by Designrest.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    You can use the following code snippet to do that:

    
    add_action( 'wpo_wcpdf_before_pdf', function ( $document_type, $document ) {
    	add_filter( 'woocommerce_currency_symbol','__return_empty_string', 999, 2);
    }, 10, 2 );
    add_action( 'wpo_wcpdf_after_pdf', function ( $document_type, $document ) {
    	remove_filter( 'woocommerce_currency_symbol','__return_empty_string', 999, 2);
    }, 10, 2 );
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Thread Starter Designrest

    (@designrest)

    It worked.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove currency symbol in PDF?’ is closed to new replies.