Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @fgelio,

    We don’t have a setting to change our panel titles, however, you can achieve it with this code snippet:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Customize text from the plugin
     */
    add_filter( 'gettext', 'wpo_wcpdf_customize_string_translation', 999, 3 );
    function wpo_wcpdf_customize_string_translation( $translation, $text, $domain ) {
    	if ( $domain == 'woocommerce-pdf-invoices-packing-slips' ) {
    		switch ( $text ) {
    			// Repeat as many cases as strings you want to translate
    			case 'PDF document data':
    				$translation = 'PDF document info';
    				break;
    			case 'Create PDF':
    				$translation = 'PDF documents';
    				break;
    		}
    	}
    	return $translation;
    }

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

    Thread Starter Eliodata

    (@fgelio)

    Thank you!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    We’re happy to help!

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change metabox title’ is closed to new replies.