Skip to content

Instantly share code, notes, and snippets.

@sureshHARDIYA
Last active October 6, 2017 13:44
Show Gist options
  • Save sureshHARDIYA/360dfcd9e49ea6804d1ff9c3378a17ba to your computer and use it in GitHub Desktop.
Save sureshHARDIYA/360dfcd9e49ea6804d1ff9c3378a17ba to your computer and use it in GitHub Desktop.
The right hooks for registering custom fields in woo commerce products page
// Display Fields
add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' );
// Save Fields
add_action( 'woocommerce_process_product_meta', 'woo_add_custom_general_fields_save' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment