Skip to content

Instantly share code, notes, and snippets.

@fervous
Created May 18, 2017 03:57
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 fervous/7e7f7f4c0bce483bd8020ecc64e816d6 to your computer and use it in GitHub Desktop.
Save fervous/7e7f7f4c0bce483bd8020ecc64e816d6 to your computer and use it in GitHub Desktop.
Simple auctions wc vendors pro - proxy by default
add_filter( 'wcv_simple_auctions_proxy_bidding', 'wcv_simple_auctions_proxy_bidding_default' );
function wcv_simple_auctions_proxy_bidding_default() {
$field['post_id'] = $post_id;
$field['id'] = '_auction_proxy';
$field['label'] = __( 'Enable Proxy Bidding', 'wcvendors-pro' );
$field['type'] = 'checkbox';
$field['value'] = 'yes'; // This checks the checkbox
return $field;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment