This file contains hidden or 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 | |
| // This code should be added to the functions.php file of the child theme | |
| // Add custom info to Additional Information product tab | |
| add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); | |
| function woo_rename_tabs( $tabs ) { | |
| global $product; | |
| $tabs['additional_information']['callback'] = 'custom_function_name'; // this is the function name which is included below | |
| return $tabs; | |
| } |
This file contains hidden or 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 | |
| add_action( 'gform_post_add_entry', 'gv_import_entry_send_notifications', 10, 2 ); | |
| /** | |
| * Send notifications | |
| * | |
| * @param $entry | |
| * @param $form | |
| */ |
This file contains hidden or 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( 'init', 'ec_child_remove_tgmpa_notification' ); | |
| function ec_child_remove_tgmpa_notification() { | |
| remove_action( 'tgmpa_register', 'electro_register_required_plugins', 10 ); | |
| } |
OlderNewer