Created
April 24, 2017 12:27
-
-
Save rajendra89/9da9304a8626ca03fe36a0af89f6e2a2 to your computer and use it in GitHub Desktop.
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
add_action( 'woocommerce_product_options_general_product_data', 'wc_custom_add_custom_fields' ); | |
function wc_custom_add_custom_fields() { | |
// Print a custom text field | |
woocommerce_wp_text_input( array( | |
'id' => '_custom_text_field1', | |
'label' => 'Name', | |
'description' => ' Field, you can write your Name.', | |
'desc_tip' => 'true', | |
'placeholder' => 'Ram' | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment