checked for types

This commit is contained in:
Mike Jolley 2012-07-25 13:38:23 +01:00
parent fc15d177c5
commit 5200cee01b
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ function woocommerce_product_data_box() {
) );
foreach ( $product_type_options as $key => $option ) {
$type_box .= '<label for="' . $option['id'] . '" class="'. $option['wrapper_class'] . ' tips" data-tip="' . $option['description'] . '">'. $option['label'] . ': <input type="checkbox" name="' . $option['id'] . '" id="' . $option['id'] . '" /></label>';
$selected_value = get_post_meta( $post->ID, '_' . $key, true );
$type_box .= '<label for="' . $option['id'] . '" class="'. $option['wrapper_class'] . ' tips" data-tip="' . $option['description'] . '">'. $option['label'] . ': <input type="checkbox" name="' . $option['id'] . '" id="' . $option['id'] . '" ' . checked( $selected_value, 'yes', false ) .' /></label>';
}
?>