Created
September 16, 2020 00:35
-
-
Save wplit/4345af0181213f44953683833ec943ad to your computer and use it in GitHub Desktop.
product list hook for categories
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
| add_action('woocommerce_shop_loop_item_title', 'lit_shop_loop_item_before_title', 5 ); | |
| function lit_shop_loop_item_before_title() { | |
| if ( !is_product_category() ) // abort unless we're on a product category | |
| return; | |
| echo 'add something here'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment