Skip to content

Instantly share code, notes, and snippets.

@rajendra89
Created April 24, 2017 12:27
Show Gist options
  • Save rajendra89/9da9304a8626ca03fe36a0af89f6e2a2 to your computer and use it in GitHub Desktop.
Save rajendra89/9da9304a8626ca03fe36a0af89f6e2a2 to your computer and use it in GitHub Desktop.
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