Skip to content

Instantly share code, notes, and snippets.

@hendcorp
Last active August 12, 2017 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hendcorp/efaab5bf17debf26fe6993edcd095661 to your computer and use it in GitHub Desktop.
Save hendcorp/efaab5bf17debf26fe6993edcd095661 to your computer and use it in GitHub Desktop.
WC Vendors Simple Auction - Form Helper
<?php
// Auction Duration
WCVendors_Pro_Form_Helper::select( apply_filters( 'wcv_simple_auctions_auction_duration', array(
'post_id' => $post_id,
'id' => '_auction_duration',
'label' => __( '<i class="fa fa-calendar"></i> Duration', 'wc_simple_auctions' ),
'class' => 'form-control',
'desc_tip' => 'true',
'description' => sprintf( __( 'Select how long your listing will run.', 'wcvendors-pro-simple-auctions' ) ),
'wrapper_start' => '<div id="duration-box" class="column large-6">',
'wrapper_end' => '</div>',
'options' => array( '3' => __('3 days', 'wc_simple_auctions'),
'5' => __('5 days', 'wc_simple_auctions'),
'7' => __('7 days', 'wc_simple_auctions'),
'10' => __('10 days', 'wc_simple_auctions'))))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment