wpgenie

add Auction Watchlist link to product archive / loop

Nov 16th, 2023 (edited)
1,239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. /*
  2.     Add Auction Watchlist link to product archive / loop
  3.  
  4.     this code snippet should go to your functions.php file
  5. */
  6. add_action( 'init' , 'wpgenie_custom_add_link_to_loop', 90 );
  7. function wpgenie_custom_add_link_to_loop(){
  8.     global $woocommerce_auctions;
  9.     add_action( 'woocommerce_before_shop_loop_item_title', array( $woocommerce_auctions, 'add_watchlist_link' ) , 60 );
  10. }
Advertisement
Add Comment
Please, Sign In to add comment