Skip to content

Instantly share code, notes, and snippets.

View DxDiagDx's full-sized avatar
:octocat:

Evgeny Lukin DxDiagDx

:octocat:
View GitHub Profile
@DxDiagDx
DxDiagDx / checkbox_input.php
Last active November 30, 2020 06:07 — forked from igorbenic/checkbox_input.php
Woocommerce: Произвольные поля в блоке "Данные товара" | https://www.ibenic.com/how-to-add-woocommerce-custom-product-fields
<?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