Home Forums WoodMart support forum Loco Translate doubts

Loco Translate doubts

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #298612

    sergiocosta
    Participant

    Hello,

    I created some functions with new strings using the woodmart child theme, like this:

    /**
    * Oldest to most Recent
    */

    add_filter( ‘woocommerce_get_catalog_ordering_args’, ‘enable_catalog_ordering_by_modified_date’ );
    function enable_catalog_ordering_by_modified_date( $args ) {
    if ( isset( $_GET[‘orderby’] ) ) {
    if ( ‘oldest_to_recent’ == $_GET[‘orderby’] ) {
    return array(
    ‘orderby’ => ‘date’,
    ‘order’ => ‘ASC’,
    );
    }
    }
    return $args;
    }

    add_filter( ‘woocommerce_catalog_orderby’, ‘add_catalog_orderby_by_modified_date’ );
    function add_catalog_orderby_by_modified_date( $orderby_options ) {
    // Rename ‘menu_order’ label
    $orderby_options[‘oldest_to_recent’] = __(“Oldest to most recent”, “woocommerce”);

    return $orderby_options ;
    }

    I’m using __(“Oldest to most recent”, “woocommerce”); I tried to load again a new translation from woocommerce plugin and search the string on Loco Translate, but i can’t find anything. What will be problem?

    Thanks for help.

    #298626

    Hello,

    Please share the WP admin login details of your site so I will check and solve the issue.

    Best Regards.

Viewing 2 posts - 1 through 2 (of 2 total)