Category: Wordpress

How to Add Custom Fields to WooCommerce Checkout Page

Recently, I have created e-commerce site using wordpress and woocommerce and it is required to collect more information of customers through extra fields on checkout page.Here, I had many options to customized checkout page using plugins and code.But there was requirement to add fields conditionally according to type of user.For this I used action hook

Adding Custom Meta Box to Taxonomies

There are basically three main functions which will be used to add custom meta box for taxonomy and these functions are invoked through following hooks. 1. {taxonomy_name}_add_form_fields 2. {taxonomy_name}_edit_form_fields 3. edited_{taxonomy_name} 4. create_{taxonomy_name} Here, we can replace taxonomy_name with any default or custom created taxonomy accordingly.I have used “Woocommerce product taxonomy” in below mentioned example