Here is the code snippet that you can use to create a shortcode and use it in any of your posts or pages to display the price of a specific product. You just have to specify the woocommerce product ID of that product like the given example. [woo_product_price id=20]
Tag: snippet
You can use the WooCommerce filter woocommerce_get_price_html and woocommerce_cart_item_price to add a string before or after the price in WooCommerce product and cart pages. Here is the code that you can copy and paste in your active theme’s functions.php file: You can use the above simple code snippet in your active theme, or use the…
Meta generator tag in WordPress reveals the plugin or WordPress core version which makes WordPress vulnerable. So, here i list snippets to disable meta tag generator by various plugins. Remove WordPress & Woocommerce meta tag generator This code will disable meta tag generated by WordPress, Woocommerce and many other standard plugins that hook up with…