Skip to content

Instantly share code, notes, and snippets.

Avatar

Evgeny Lukin DxDiagDx

View GitHub Profile
@DxDiagDx
DxDiagDx / checkbox_input.php
Last active Nov 30, 2020 — forked from igorbenic/checkbox_input.php
Woocommerce: Произвольные поля в блоке "Данные товара" | https://www.ibenic.com/how-to-add-woocommerce-custom-product-fields
View checkbox_input.php
<?php
$args = array(
'label' => '', // Text in Label
'class' => '',
'style' => '',
'wrapper_class' => '',
'value' => '', // if empty, retrieved from post meta where id is the meta_key
'id' => '', // required
'name' => '', //name will set from id if empty