Created
May 7, 2019 16:00
-
-
Save MaximeCulea/09c450bdaf6da371c7974c9f8fe43cf8 to your computer and use it in GitHub Desktop.
Some tips with WC
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
<?php | |
/** | |
* When using woocommerce_form_field api | |
* Some tips to maje custom things | |
*/ | |
woocommerce_form_field( 'field_id', [ | |
// make the field readonly | |
'custom_attributes' => [ 'readonly' => true ] | |
], 'value' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment