There are scenarios where you want the WordPress Admin to behave differently, when you can add new page or add new post in admin side of wordpress and you want to change the button text from PUBLISH to SAVE. So…
Currently your customers have no idea how many quantity or downloads have been ordered from your WooCommerce site. So in order to apply this change, Show Number Of Products Sold on Single Product or Shop Page. So you can add…
By default there is not option in WooCommerce settings to disable, delete or remove the ‘Add To Cart’ button from a specific category or a product page. we will show you how to disable the “Add-To-Cart” button in a specific…
First of all create some products and assign them to categories. I’ve created two products, two categories and assigned one product to each category. This will be my shop page look like after products creation and assignation with the category….
These are 2 steps to add a WooCommerce cart icon with the cart count to your theme. The number of items will be updated automatically as items are added to cart. step 1 : Open your functions.php file of your…
step 1 : Open your functions.php file of your active child theme (or theme) and add the code below to it. Make sure the code is added before the closing PHP tag. add_action( ‘init’, ‘custom_taxonomy_Color’ ); function custom_taxonomy_Color() { $labels…
Open your functions.php file of your active child theme (or theme) and add the code below to it. Make sure the code is added before the closing PHP tag. I will explain the code below. add_action( ‘init’, ‘ls_register_post_types’ ); function…
I’m going to show you how to create custom widget in wordpress. Here is the code , Paste this code in your function.php file of your active child theme (or theme). // Register and load the widget add_action( ‘widgets_init’, ‘register_my_widget’…
you will need to edit the wp-config.php file. You simply set WP_DEBUG to false in your wp-config.php file. you’ll see the following code: define(‘WP_DEBUG’, false); However, the problem is that some times the above does not work. That can happen…
Today I would like to show you increasing PHP script execution time limit using ini_set() function. PHP default script execution limit is 30 seconds. In my recent project to prevent the script from timing out, I had to set the…