In woocommerce checkout page, we change country and state dropdown values as par required. For example if you want to by default selected country as ‘USA’ and default state to ‘New York’ after loding checkout page, yes this is possible in woocommerce using filter. Following code show how to change them. Advertisements
Following code will show you that how to get product categories list in WooCommerce.
We need to use ‘admin_menu’ hook to remove/hide menu from specific role type. Following code show example of this. First get role type then remove menu. Open functions.php and write following code. Please keep in mind that this code doesn’t remove user’s permission. That means user still can access menu directly from browser.
In wordpress site while you add ajax function to modify html content you can do it in fancy way like adding some jquery effect. so user can see updated contents in site.