Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // code goes in functions.php for your child theme
- // insert content after category items on the archive page
- // not after product items on the archive page
- add_action( 'woocommerce_after_subcategory', 'after_category_item' );
- function after_category_item($category) {
- $category_id = $category->cat_ID;
- if ($category_id == "16") {
- echo '<a href="http://www.mydomain.com/page" class="my_cat_link">More info</a>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement