[rank_math_breadcrumb]

How to Change N/A if SKU is empty in Woocommerce

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

In this tutorial, I will teach How to Change N/A if SKU is empty in Woocommerce. as a default, it set to N/A but using this code you can easily change it.

Copy the code below in your functions.php

// Translate N/A to Select Option
add_filter( 'gettext', 'custom_na_translate_woo_wording', 10, 3 );
function custom_na_translate_woo_wording($translation, $text, $domain) {
  if ($domain == 'woocommerce') {
    switch ($text) {
      case 'N/A':
        $translation = 'Select Option';
        break;
    }
  }

  return $translation;
}

If you liked this article, then please subscribe to our YouTube Channel for more WordPress video tutorials.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

You want to Learn WordPress?

Be automatically notified of all new posts. No spam. No annoying marketing emails.

How to

Install

WORDPRESS

(Step by Step)

How to

start a

WP BLOG

(Step by Step)

WordPress Help for Beginners

Please join our Facebook group to connect WordPress experts.