Catalog Modes - Filter Hook References

Catalog Modes - Filter Hook References

This is simply a list of catalog modes 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/catalog-modes/get-mode-type-groups

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

Example Codes:

  1. function custom_get_mode_type_groups( $group_types, $args ) {
  2.    //add your custom code here
  3.    return $group_types;
  4. }
  5. add_filter( 'wmodes-admin/catalog-modes/get-mode-type-groups', 'custom_get_mode_type_groups', 10, 2 );

wmodes-admin/catalog-modes/get-{group_type_id}-mode-types

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

Example Codes:

  1. function custom_get_group_type_id_mode_types( $mode_types, $args ) {
  2.    //add your custom code here
  3.    return $mode_types;
  4. }
  5. add_filter( 'wmodes-admin/catalog-modes/get-{group_type_id}-mode-types', 'custom_get_group_type_id_mode_types', 10, 2 );

wmodes-admin/catalog-modes/get-mode-type-{mode_type_id}-fields

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

Example Codes:

  1. function custom_get_mode_type_mode_type_id_fields( $fields, $args ) {
  2.    //add your custom code here
  3.    return $fields;
  4. }
  5. add_filter( 'wmodes-admin/catalog-modes/get-mode-type-{mode_type_id}-fields', 'custom_get_mode_type_mode_type_id_fields', 10, 2 );

wmodes-admin/catalog-modes/get-type-requires-products

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

Example Codes:

  1. function custom_get_type_requires_products( $mode_type_ids, $args ) {
  2.    //add your custom code here
  3.    return $mode_type_ids;
  4. }
  5. add_filter( 'wmodes-admin/catalog-modes/get-type-requires-products', 'custom_get_type_requires_products', 10, 2 );

wmodes-admin/catalog-modes/get-type-requires-variations

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

Example Codes:

  1. function custom_get_type_requires_variations( $mode_type_ids, $args ) {
  2.    //add your custom code here
  3.    return $mode_type_ids;
  4. }
  5. add_filter( 'wmodes-admin/catalog-modes/get-type-requires-variations', 'custom_get_type_requires_variations', 10, 2 );

wmodes/catalog-modes/process-{mode_type_id}-mode

  • Parameters:
  • $mode array()
  • $mode_args array()
  • $data array()

Example Codes:

  1. function custom_process_mode_type_id_mode( $mode, $mode_args, $data ) {
  2.    //add your custom code here
  3.    return $mode;
  4. }
  5. add_filter( 'wmodes/catalog-modes/process-{mode_type_id}-mode', 'custom_process_mode_type_id_mode', 10, 3 );
    • Related Articles

    • Catalog Modes

      The Catalog Modes page allows you to easily create and manage an unlimited number of catalog mode settings based on product rules and conditions. Apply Method This field lets you choose how catalog mode settings are applied to the shop, cart, and ...
    • 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. ...
    • 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 ...