How to enable default WP search query to include woocommerce SKU numbers?

[ad_1]

The goal is simply to allow visitors to query the SKU number of products.

It works if I write it manually into the product description, but that’s silly. I can’t figure out how to do it with PHP, because there’s no hook for product description. Otherwise, it’d be perfect if I could just echo: ‘<span styles=”display:none;”>$sku</span> in the end of the product description.

I’d prefer a non-plugin solution, but I’m getting desperate and would go for a simple, low-footprint plugin for this purpose.

Any ideas?

[ad_2]

 

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