wpgenie

add buy 5 tickets button next to lucky dip

Sep 22nd, 2021
862
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Code that adds buy 5 tickets button next to lucky dip */
  2.  
  3. add_action( 'wc_lottery_before_ticket_numbers', 'wpgenie_add_shortcode_lottery_lucky_dip_buton', 40 );
  4.  
  5. function wpgenie_add_shortcode_lottery_lucky_dip_buton(){
  6.  
  7.     echo do_shortcode( '[lottery_lucky_dip_buton qty="5" label="buy 5 tickets"]' );
  8. }
RAW Paste Data