Created
February 18, 2022 12:49
-
-
Save AshlinRejo/a2d5a2981357cd8a046b30e93fd0c910 to your computer and use it in GitHub Desktop.
Snippet for display discount bar in different position
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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