Created
April 22, 2015 00:49
-
-
Save kharissulistiyo/451ca338911f121aee01 to your computer and use it in GitHub Desktop.
Woocommerce Custom Product Data Fields: Field setting to allow checkbox to be checked by default. https://wordpress.org/plugins/woocommerce-custom-product-data-fields/
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
$custom_product_data_fields[] = array( | |
'id' => '_mycheckbox', | |
'type' => 'checkbox', | |
'label' => __('Checkbox', 'wc_cpdf'), | |
'description' => __('Field description.', 'wc_cpdf'), | |
'desc_tip' => true, | |
'checked' => true, // Allows the checkbox to be checked by default. | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment