Stock status translation | WordPress.org

[ad_1]

Hi @bszakacs

Thank you for your interest in the Filter Everything plugin.

If you want to change it in the English language you can go to the filter-everything-pro/src/wpc-default-hooks.php on line 34 and check it there:

add_filter( 'wpc_filter_post_meta_term_name', 'flrt_stock_status_term_name', 10, 2 );
if( ! function_exists('flrt_stock_status_term_name') ) {
    function flrt_stock_status_term_name($term_name, $e_name)
 {
        if ($e_name === '_stock_status') {
            $term_name = strtolower($term_name);
            if ($term_name === "instock") {
                $term_name = esc_html__('In stock', 'filter-everything');
 }

            if ($term_name === "onbackorder") {
                $term_name = esc_html__('On backorder', 'filter-everything');
 }

            if ($term_name === "outofstock") {
                $term_name = esc_html__('Out of stock', 'filter-everything');
 }
 }

        return $term_name;
 }
}

But for other languages Loco translate is working perfectly.

Best Regards – Victor

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer