Last active
October 6, 2017 13:44
-
-
Save sureshHARDIYA/360dfcd9e49ea6804d1ff9c3378a17ba to your computer and use it in GitHub Desktop.
The right hooks for registering custom fields in woo commerce products page
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
// 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