MAS Brands for WooCommerce icon
eCommerce & WooCommerce

MAS Brands for WooCommerce hooks reference

  • By MadrasThemes
  • v1.1.0
  • Updated

MAS Brands for WooCommerce 1.1.0 has 4 actions and 6 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when MAS Brands for WooCommerce fires an action
add_action( 'mas_wc_brands_loaded', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value MAS Brands for WooCommerce is about to use
add_filter( 'mas_wc_brands_admin_localize_script_data', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/class-mas-wc-brands-shortcodes.php line 36
    apply_filters( "{$shortcode}_shortcode_tag", $shortcode );
  • includes/class-mas-wc-brands-admin.php line 32
    apply_filters( 'mas_wc_brands_admin_localize_script_data', array( 'media_title' => esc_html__( 'Choose an image', 'mas-wc-brands' ), 'media_btn_text' => esc_html__( 'Use image', 'mas-wc-brands' ), 'placeholder_img_src' => wc_placeholder_img_src() ) );
  • includes/class-mas-wc-brands.php line 66
    do_action( 'mas_wc_brands_loaded' );
  • includes/class-mas-wc-brands-admin-settings.php line 37
    apply_filters( 'mas_wc_brands_settings_fields', array( array( 'name' => esc_html__( 'Brands Settings', 'mas-wc-brands' ), 'type' => 'title','desc' => '', 'id' => 'brands_settings' ), array( 'title' => esc_html__( 'Brand Attribute', 'mas-wc-brands' ), 'desc' => esc_html__( 'Choose a product attribute that will be used as brand.', 'mas-wc-brands' ), 'id' => 'mas_wc_brands_brand_taxonomy', 'class' => 'wc-enhanced-select', 'css' => 'min-width:30... );
  • includes/mas-wc-brands-functions.php line 42
    apply_filters( 'mas_wcbr_brand_thumbnail_size', 'brand-thumb' );
  • widget_title

    filter
    includes/widgets/class-mas-wc-widget-brand-thumbnails.php line 67
    apply_filters( 'widget_title', $instance['title'], $instance, $this->woo_widget_idbase );
  • includes/class-mas-wc-brands-shortcodes.php line 326
    do_action( "woocommerce_shortcode_{$loop_name}_loop_no_results", $atts );
  • includes/class-mas-wc-brands-shortcodes.php line 322
    do_action( "woocommerce_shortcode_after_{$loop_name}_loop", $atts );
  • includes/class-mas-wc-brands-shortcodes.php line 310
    do_action( "woocommerce_shortcode_before_{$loop_name}_loop", $atts );
  • includes/class-mas-wc-brands-shortcodes.php line 293
    apply_filters( 'woocommerce_shortcode_products_query', $query_args, $atts, $loop_name );

Generated from MAS Brands for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: