Created
May 18, 2017 03:57
-
-
Save fervous/7e7f7f4c0bce483bd8020ecc64e816d6 to your computer and use it in GitHub Desktop.
Simple auctions wc vendors pro - proxy by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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