Views & Locations - Filter Hook References

Views & Locations - Filter Hook References

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


wmodes/register-view-locations

  • Parameters:
  • $view_locations array()

Example Codes:

  1. function custom_register_view_locations( $view_locations ) {
  2.    //add your custom code here
  3.    return $view_locations;
  4. }
  5. add_filter( 'wmodes/register-view-locations', 'custom_register_view_locations', 10, 1 );

wmodes/register-view-paths

  • Parameters:
  • $view_paths array()

Example Codes:

  1. function custom_register_view_paths( $view_paths ) {
  2.    //add your custom code here
  3.    return $view_paths;
  4. }
  5. add_filter( 'wmodes/register-view-paths', 'custom_register_view_paths', 10, 1 );

wmodes/compose-css

  • Parameters:
  • $css array()
  • $options array()

Example Codes:

  1. function custom_compose_css( $css, $options ) {
  2.    //add your custom code here
  3.    return $css;
  4. }
  5. add_filter( 'wmodes/compose-css', 'custom_compose_css', 10, 2 );
    • Related Articles

    • Conditions - Filter Hook References

      This is simply a list of condition-related 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-condition-groups ...
    • 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 Rules - Filter Hook References

      This is simply a list of product rule-related filter hooks included in the WooCommerce Catalog Mode - Pricing, Enquiry Forms & Promotions files. This list also includes the supported parameters and example codes. ...
    • Cart Data - Filter Hook References

      This is simply a list of cart data-related filter hooks included in the WooCommerce Catalog Mode - Pricing, Enquiry Forms & Promotions files. This list also includes the supported parameters and example codes. wmodes/get-cart-item Parameters: ...
    • Product Data - Filter Hook References

      This is simply a list of product data-related filter hooks included in the WooCommerce Catalog Mode - Pricing, Enquiry Forms & Promotions files. This list also includes the supported parameters and example codes. wmodes/get-product-properties ...