wpgenie

additional auction condition terms

Nov 14th, 2023
885
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. add_filter('simple_auction_item_condition', 'wpgenie_custom_item_condition' );
  2. function wpgenie_custom_item_condition( $array ){
  3.  
  4.     $array = array(
  5.        
  6.         'new'       => esc_html__('New', 'wc_simple_auctions_custom'),
  7.         'used'      => esc_html__('Used', 'wc_simple_auctions_custom'),
  8.         'old'       => esc_html__('Old', 'wc_simple_auctions_custom'),
  9.         'broken'    => esc_html__('Broken', 'wc_simple_auctions_custom')
  10.        
  11.     );
  12.  
  13.     return $array;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment