Category: Woocommerce Hooks
Best Wordpress plugin to integrate the ecommerce cart in your website. Easy to use and develop.
Here we explain the structure and hooks used in woocommerce to edit the woocommerce features.
woocommerce_order_status_completed
Using this filter, we can add code that should be executed after woocommerce order is completed. add_action(‘woocommerce_order_status_completed’, ‘complte_order_process_functi... Read Morewoocommerce_shop_order_search_fields
Using this filter, we can edit the search criteria in woocommerce order. Usually search done based on following fields: Array ( [0] => _billing_address_index [1] => _shipping_address_index [2] =... Read Morewoocommerce_package_rates
Using this filter, we can edit shipping methods. In this filter we will get current shipping packages details (free shipping, flat rate or some other packages) Sample: function all_shipping_methods( $... Read Morewoocommerce_shipping_fields
Using this filter, we can edit shipping address fields. Sample : add_filter( ‘woocommerce_shipping_fields’, ‘shippingfields’ ); function shippingfields ( $fields ) { $fields[‘... Read Morewoocommerce_default_address_fields
To alter all billing fields while checkout. EG: add_filter( ‘woocommerce_default_address_fields’, ‘my_default_address_fields’ ); function my_default_address_fields( $fields ) {... Read Morewoocommerce_product_query_meta_query
Used to filter meta queries for woocommerce. Queries in “prefix_postmeta “ table . Sample add_filter(‘woocommerce_product_query_meta_query’ , ‘hide_outofstock_from_best_sellers... Read More- 2 of 2
- « Previous
- 1
- 2