Skip to content

Instantly share code, notes, and snippets.

@AshlinRejo
Created February 18, 2022 12:49
Show Gist options
  • Save AshlinRejo/a2d5a2981357cd8a046b30e93fd0c910 to your computer and use it in GitHub Desktop.
Save AshlinRejo/a2d5a2981357cd8a046b30e93fd0c910 to your computer and use it in GitHub Desktop.
Snippet for display discount bar in different position
function custom_sale_hook($hook) {
return 'my_custom_hook';
}
add_action('plugins_loaded', function () {
add_filter('advanced_woo_discount_rules_custom_position_to_show_discount_bar', 'custom_sale_hook');
}, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment