Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter AnuVi

    (@anuvi)

    Oh, thanks for the tip! It works if I comment out this filter:

    //change pdf-name
    add_filter( ‘wpo_wcpdf_filename’, ‘wpo_wcpdf_custom_filename’, 10, 4 );
    function wpo_wcpdf_custom_filename( $filename, $template_type, $order_ids, $context ) {
    if(get_locale()==”et”){

    $invoice_string = _n( ‘invoice’, ‘invoices’, count($order_ids), ‘woocommerce-pdf-invoices-packing-slips’ );
    $new_prefix = _n( ‘Arve’, ‘Arved’, count($order_ids), ‘woocommerce-pdf-invoices-packing-slips’ );
    $new_filename = str_replace($invoice_string, $new_prefix, $filename);

    return $new_filename;
    }

    }

    Thread Starter AnuVi

    (@anuvi)

    Thank you, it worked!

    Thread Starter AnuVi

    (@anuvi)

    It’s get_the_category_list and it’s inside the loop

    <?php
                    /* translators: used between list items, there is a space after the comma */
                    $categories_list = get_the_category_list( __( ' ', 'requiredfoundation' ) );
                    if ( $categories_list ):
    
                ?>
    
                    <?php printf( __( ' %2$s', 'requiredfoundation' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
                     ?>
    
                <?php endif; // End if categories ?>
Viewing 3 replies - 1 through 3 (of 3 total)