Advanced Woo Labels icon
eCommerce & WooCommerce

Advanced Woo Labels hooks reference

  • By ILLID
  • v2.55
  • Updated

Advanced Woo Labels 2.55 has 4 actions and 47 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 Advanced Woo Labels fires an action
add_action( 'awl_hide_default_sale_flash', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Advanced Woo Labels is about to use
add_filter( 'awl_labels_text_vars', function( $variables ) {
	// Change $variables here.
	return $variables;
}, 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-awl-label-text.php line 49 · used in 2 places
    /**
     * Filter labels text vars
     */
    apply_filters( 'awl_labels_text_vars', $this->variables );
  • includes/class-awl-label-display.php line 283 · used in 2 places
    /**
     * Show or not label on current product
     */
    apply_filters( 'awl_show_label_for_product', $match_condition, $product, $label_id );
  • includes/class-awl-label-display.php line 226 · used in 2 places
    /**
     * Show or not labels for the current product
     */
    apply_filters( 'awl_show_labels_for_product', $disable_labels, $product );
  • includes/admin/class-awl-admin-options.php line 336
    /**
     * Filter admin page options
     */
    apply_filters( 'awl_admin_page_options', $options );
  • includes/class-awl-label-view.php line 84
    /**
     * Filter current label markup
     */
    apply_filters( 'awl_current_label_markup', $label_html, $this->position_type, $label );
  • includes/class-awl-label-display.php line 333
    /**
     * Enable or not labels display
     */
    apply_filters( 'awl_enable_labels', $enable );
  • includes/modules/class-awl-barn-tables.php line 56
    /**
     * Enable/disable product labels inside table
     */
    apply_filters( 'awl_hide_for_barn2_tables', $this->data['disable_labels'] );
  • includes/class-awl-product-data.php line 255
    /**
     * Filter product sale status
     */
    apply_filters( 'awl_is_on_sale', $product->is_on_sale(), $product );
  • includes/class-awl-hooks.php line 279
    /**
     * Filter js selectors for product container
     */
    apply_filters( 'awl_js_container_selectors', $product_container );
  • includes/class-awl-helpers.php line 62
    /**
     * Filter js selectors for labels
     */
    apply_filters( 'awl_js_selectors', $selectors );
  • includes/admin/class-awl-admin-options.php line 725
    /**
     * Filter label options
     */
    apply_filters( 'awl_label_admin_options', $options );
  • includes/admin/class-awl-admin-options.php line 1049
    /**
     * Filter label settings tabs
     */
    apply_filters( 'awl_label_admin_options_tabs', $tabs );
  • includes/class-awl-conditions.php line 124
    /**
     * Filter condition value before compare
     */
    apply_filters( 'awl_label_condition_compare_value', $compare_value, $this->rule, $product );
  • includes/class-awl-conditions.php line 84
    /**
     * Filter the result of condition rule
     */
    apply_filters( 'awl_label_condition_match_rule', $match_rule, $condition_name, $condition_rule );
  • includes/class-awl-conditions.php line 63
    /**
     * Filter condition rule parameters
     */
    apply_filters( 'awl_label_condition_rule', $condition_rule );
  • includes/class-awl-label-view.php line 274
    /**
     * Filter label container styles
     */
    apply_filters( 'awl_label_container_styles', $styles, $this->position_type, $this->labels );
  • includes/class-awl-label-view.php line 99
    /**
     * Filter all available labels markup for this position type
     */
    apply_filters( 'awl_label_markup', $html, $this->position_type, $this->labels );
  • includes/admin/class-awl-admin-helpers.php line 257
    /**
     * Filter options array of taxonomy terms
     */
    apply_filters( 'awl_label_options_get_tax_terms', $options, $name );
  • includes/admin/class-awl-admin-options.php line 964
    /**
     * Filter label rules
     */
    apply_filters( 'awl_label_rules', $options );
  • advanced-woo-labels.php line 229
    /**
     * Filter label settings
     */
    apply_filters( 'awl_label_settings', $label, $id, $single );
  • includes/class-awl-label-view.php line 412
    /**
     * Filter label styles
     */
    apply_filters( 'awl_label_styles', $styles, $this->position_type, $this->settings );
  • includes/class-awl-helpers.php line 139
    /**
     * Filter labels text
     */
    apply_filters( 'awl_label_text', $label_text, $label_settings );
  • includes/class-awl-label-view.php line 449
    /**
     * Filter label text styles
     */
    apply_filters( 'awl_label_text_styles', $styles, $this->position_type, $this->settings );
  • includes/class-awl-label-text.php line 95
    /**
     * Filter text vaiables output
     */
    apply_filters( 'awl_label_text_var_value', $text, $matches[0], $this->replacement, $product );
  • includes/class-awl-label-view.php line 299
    /**
     * Filter label wrapper styles
     */
    apply_filters( 'awl_label_wrapper_styles', $styles, $this->position_type, $this->settings );
  • includes/class-awl-conditions.php line 46
    /**
     * Filter condition functions
     */
    apply_filters( 'awl_labels_condition_rules', array() );
  • includes/class-awl-helpers.php line 27
    /**
     * Filter labels hooks array
     */
    apply_filters( 'awl_labels_hooks', array() );
  • includes/class-awl-label-display.php line 202
    /**
     * Filter label html before output
     */
    apply_filters( 'awl_labels_output', $label_html, $label_position_type );
  • includes/class-awl-helpers.php line 252
    /**
     * Filter labels positions
     */
    apply_filters( 'awl_labels_positions', $positions );
  • includes/class-awl-helpers.php line 216
    /**
     * Filter array of hooks to detect single label type
     */
    apply_filters( 'awl_labels_single_type_hooks', $single_hooks );
  • includes/admin/class-awl-admin-options.php line 1025
    /**
     * Filter text vars descriptions
     */
    apply_filters( 'awl_labels_text_vars_description', $variables );
  • includes/class-awl-product-data.php line 275
    /**
     * Filter product price
     */
    apply_filters( 'awl_product_price', wc_get_price_to_display( $product, array('price' => $product->get_price() ) ), $product );
  • includes/class-awl-product-data.php line 295
    /**
     * Filter product sale price
     */
    apply_filters( 'awl_product_sale_price', wc_get_price_to_display( $product, array('price' => $product->get_sale_price() ) ), $product );
  • includes/admin/class-awl-admin-label-settings.php line 106
    /**
     * Filter label settings field before render
     */
    apply_filters( "awl_settings_field_{$field['id']}", $field, $this->values );
  • awl_svg_icons

    filter
    includes/class-awl-label-view.php line 525
    /**
     * Filter the array of svg icons
     */
    apply_filters( 'awl_svg_icons', $icon_arr );
  • includes/class-awl-helpers.php line 283
    /**
     * Filter WooCommerce hooks
     */
    apply_filters( 'awl_woocommerce_hooks', $hooks );
  • includes/modules/class-awl-wdr.php line 54 · used in 2 places
    apply_filters( 'advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $price, $product, 1, $price, 'discounted_price', true, true );
  • includes/class-awl-product-data.php line 313 · used in 2 places
    apply_filters( 'awl_enable_discounts_cache', true, $product );
  • includes/class-awl-conditions.php line 407 · used in 2 places
    apply_filters( 'awl_labels_condition_include_descendants', false );
  • includes/modules/class-awl-essential-addons.php line 49
    apply_filters( 'awl_disable_essential_addons_support', false );
  • includes/modules/class-awl-unlimites-elements.php line 46
    apply_filters( 'awl_disable_unlimited_elements_support', false );
  • includes/class-awl-helpers.php line 90
    apply_filters( 'awl_get_labels', $labels );
  • includes/class-awl-hooks.php line 58
    do_action( 'awl_hide_default_sale_flash' );
  • includes/class-awl-hooks.php line 66
    do_action( 'awl_hide_default_stock_flash' );
  • includes/class-awl-versions.php line 97
    do_action( 'awl_new_plugin_version_released', AWL_VERSION );
  • includes/class-awl-taxonomy.php line 72
    apply_filters( 'awl_register_post_type_labels', array( 'labels' => array( 'name' => __( 'Labels', 'advanced-woo-labels' ), 'singular_name' => __( 'Label', 'advanced-woo-labels' ), 'add_new' => __( 'Add Label' , 'advanced-woo-labels' ), 'add_new_item' => __( 'Add New Label' , 'advanced-woo-labels' ), 'edit_item' => __( 'Edit Label' , 'advanced-woo-labels' ), 'new_item' => __( 'New Label' , 'advanced-woo-labels' ), 'view_item' => __( 'View Lab... );
  • includes/admin/class-awl-admin-options.php line 122
    do_action( 'awl_settings_saved' );
  • includes/admin/class-awl-admin-helpers.php line 92
    apply_filters( 'woocommerce_product_stock_status_options', array( 'instock' => __( 'In stock', 'woocommerce' ), 'outofstock' => __( 'Out of stock', 'woocommerce' ), 'onbackorder' => __( 'On backorder', 'woocommerce' ), ) );
  • includes/admin/class-awl-admin-helpers.php line 121
    apply_filters( 'woocommerce_product_visibility_options', array( 'visible' => __( 'Shop and search results', 'woocommerce' ), 'catalog' => __( 'Shop only', 'woocommerce' ), 'search' => __( 'Search results only', 'woocommerce' ), 'hidden' => __( 'Hidden', 'woocommerce' ), ) );
  • includes/admin/class-awl-admin-helpers.php line 538
    apply_filters( 'wpml_active_languages', NULL );
  • includes/class-awl-helpers.php line 309
    apply_filters( 'wpml_current_language', NULL );

Generated from Advanced Woo Labels'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: