Others - Filter Hook References

Others - Filter Hook References

This is simply a list of other filter hooks included in the WooCommerce Catalog Mode - Pricing, Enquiry Forms & Promotions files. This list also includes the supported parameters and example codes.


wmodes-admin/get-product-tabs

  • Parameters:
  • $product_tabs array()
  • $args array()

Example Codes:

  1. function custom_get_product_tabs( $product_tabs, $args ) {
  2.    //add your custom code here
  3.    return $product_tabs;
  4. }
  5. add_filter( 'wmodes-admin/get-product-tabs', 'custom_get_product_tabs', 10, 2 );

wmodes-admin/product-options/get-shop-loop-types

  • Parameters:
  • $shop_loop_types array()
  • $args array()

Example Codes:

  1. function custom_get_shop_loop_types( $shop_loop_types, $args ) {
  2.    //add your custom code here
  3.    return $shop_loop_types;
  4. }
  5. add_filter( 'wmodes-admin/product-options/get-shop-loop-types', 'custom_get_shop_loop_types', 10, 2 );

wmodes/validate-pipeline-shop-loop

  • Parameters:
  • $is_valid bool
  • $current_loop string
  • $shop_loop_args array()

Example Codes:

  1. function custom_validate_pipeline_shop_loop( $is_valid, $current_loop, $shop_loop_args ) {
  2.    //add your custom code here
  3.    return true; // returns true or false
  4. }
  5. add_filter( 'wmodes/validate-pipeline-shop-loop', 'custom_validate_pipeline_shop_loop', 10, 3 );

wmodes/get-in-summary

  • Parameters:
  • $in_summary bool

Example Codes:

  1. function custom_get_in_summary( $in_summary ) {
  2.    //add your custom code here
  3.    return true; // returns true or false
  4. }
  5. add_filter( 'wmodes/get-in-summary', 'custom_get_in_summary', 10, 1 );