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.