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.
// 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
-
awl_labels_text_vars
filter/** * Filter labels text vars */ apply_filters( 'awl_labels_text_vars', $this->variables ); -
awl_show_label_for_product
filter/** * Show or not label on current product */ apply_filters( 'awl_show_label_for_product', $match_condition, $product, $label_id ); -
awl_show_labels_for_product
filter/** * Show or not labels for the current product */ apply_filters( 'awl_show_labels_for_product', $disable_labels, $product ); -
awl_admin_page_options
filter/** * Filter admin page options */ apply_filters( 'awl_admin_page_options', $options ); -
awl_current_label_markup
filter/** * Filter current label markup */ apply_filters( 'awl_current_label_markup', $label_html, $this->position_type, $label ); -
awl_enable_labels
filter/** * Enable or not labels display */ apply_filters( 'awl_enable_labels', $enable ); -
awl_hide_for_barn2_tables
filter/** * Enable/disable product labels inside table */ apply_filters( 'awl_hide_for_barn2_tables', $this->data['disable_labels'] ); -
awl_is_on_sale
filter/** * Filter product sale status */ apply_filters( 'awl_is_on_sale', $product->is_on_sale(), $product ); -
awl_js_container_selectors
filter/** * Filter js selectors for product container */ apply_filters( 'awl_js_container_selectors', $product_container ); -
awl_js_selectors
filter/** * Filter js selectors for labels */ apply_filters( 'awl_js_selectors', $selectors ); -
awl_label_admin_options
filter/** * Filter label options */ apply_filters( 'awl_label_admin_options', $options ); -
awl_label_admin_options_tabs
filter/** * Filter label settings tabs */ apply_filters( 'awl_label_admin_options_tabs', $tabs ); -
/** * Filter condition value before compare */ apply_filters( 'awl_label_condition_compare_value', $compare_value, $this->rule, $product ); -
/** * Filter the result of condition rule */ apply_filters( 'awl_label_condition_match_rule', $match_rule, $condition_name, $condition_rule ); -
awl_label_condition_rule
filter/** * Filter condition rule parameters */ apply_filters( 'awl_label_condition_rule', $condition_rule ); -
awl_label_container_styles
filter/** * Filter label container styles */ apply_filters( 'awl_label_container_styles', $styles, $this->position_type, $this->labels ); -
awl_label_markup
filter/** * Filter all available labels markup for this position type */ apply_filters( 'awl_label_markup', $html, $this->position_type, $this->labels ); -
/** * Filter options array of taxonomy terms */ apply_filters( 'awl_label_options_get_tax_terms', $options, $name ); -
awl_label_rules
filter/** * Filter label rules */ apply_filters( 'awl_label_rules', $options ); -
awl_label_settings
filter/** * Filter label settings */ apply_filters( 'awl_label_settings', $label, $id, $single ); -
awl_label_styles
filter/** * Filter label styles */ apply_filters( 'awl_label_styles', $styles, $this->position_type, $this->settings ); -
awl_label_text
filter/** * Filter labels text */ apply_filters( 'awl_label_text', $label_text, $label_settings ); -
awl_label_text_styles
filter/** * Filter label text styles */ apply_filters( 'awl_label_text_styles', $styles, $this->position_type, $this->settings ); -
awl_label_text_var_value
filter/** * Filter text vaiables output */ apply_filters( 'awl_label_text_var_value', $text, $matches[0], $this->replacement, $product ); -
awl_label_wrapper_styles
filter/** * Filter label wrapper styles */ apply_filters( 'awl_label_wrapper_styles', $styles, $this->position_type, $this->settings ); -
awl_labels_condition_rules
filter/** * Filter condition functions */ apply_filters( 'awl_labels_condition_rules', array() ); -
awl_labels_hooks
filter/** * Filter labels hooks array */ apply_filters( 'awl_labels_hooks', array() ); -
awl_labels_output
filter/** * Filter label html before output */ apply_filters( 'awl_labels_output', $label_html, $label_position_type ); -
awl_labels_positions
filter/** * Filter labels positions */ apply_filters( 'awl_labels_positions', $positions ); -
awl_labels_single_type_hooks
filter/** * Filter array of hooks to detect single label type */ apply_filters( 'awl_labels_single_type_hooks', $single_hooks ); -
/** * Filter text vars descriptions */ apply_filters( 'awl_labels_text_vars_description', $variables ); -
awl_product_price
filter/** * Filter product price */ apply_filters( 'awl_product_price', wc_get_price_to_display( $product, array('price' => $product->get_price() ) ), $product ); -
awl_product_sale_price
filter/** * Filter product sale price */ apply_filters( 'awl_product_sale_price', wc_get_price_to_display( $product, array('price' => $product->get_sale_price() ) ), $product ); -
/** * Filter label settings field before render */ apply_filters( "awl_settings_field_{$field['id']}", $field, $this->values ); -
awl_svg_icons
filter/** * Filter the array of svg icons */ apply_filters( 'awl_svg_icons', $icon_arr ); -
awl_woocommerce_hooks
filter/** * Filter WooCommerce hooks */ apply_filters( 'awl_woocommerce_hooks', $hooks ); -
apply_filters( 'advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $price, $product, 1, $price, 'discounted_price', true, true ); -
awl_enable_discounts_cache
filterapply_filters( 'awl_enable_discounts_cache', true, $product ); -
apply_filters( 'awl_labels_condition_include_descendants', false ); -
apply_filters( 'awl_disable_essential_addons_support', false ); -
apply_filters( 'awl_disable_unlimited_elements_support', false ); -
awl_get_labels
filterapply_filters( 'awl_get_labels', $labels ); -
awl_hide_default_sale_flash
actiondo_action( 'awl_hide_default_sale_flash' ); -
awl_hide_default_stock_flash
actiondo_action( 'awl_hide_default_stock_flash' ); -
do_action( 'awl_new_plugin_version_released', AWL_VERSION ); -
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... ); -
awl_settings_saved
actiondo_action( 'awl_settings_saved' ); -
apply_filters( 'woocommerce_product_stock_status_options', array( 'instock' => __( 'In stock', 'woocommerce' ), 'outofstock' => __( 'Out of stock', 'woocommerce' ), 'onbackorder' => __( 'On backorder', 'woocommerce' ), ) ); -
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' ), ) ); -
wpml_active_languages
filterapply_filters( 'wpml_active_languages', NULL ); -
wpml_current_language
filterapply_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: