Skip to content

Instantly share code, notes, and snippets.

View sinebeef's full-sized avatar
💋
hnnnnggggggg

sinebeef sinebeef

💋
hnnnnggggggg
  • London
View GitHub Profile
@ben-heath
ben-heath / add-to-woocommerce-additional-info-tab-single-product.php
Last active October 13, 2022 16:22
Add content to WooCommerce Additional Information Tab on Single Products
<?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;
}
@zackkatz
zackkatz / gf-import-entries-send-notifications.php
Created May 4, 2017 18:43
Gravity Forms Import Entries - Send notifications for each imported entry
<?php
add_action( 'gform_post_add_entry', 'gv_import_entry_send_notifications', 10, 2 );
/**
* Send notifications
*
* @param $entry
* @param $form
*/
@ibndawood
ibndawood / functions.php
Created January 16, 2019 06:11
Electro - Remove TGMPA notification
add_action( 'init', 'ec_child_remove_tgmpa_notification' );
function ec_child_remove_tgmpa_notification() {
remove_action( 'tgmpa_register', 'electro_register_required_plugins', 10 );
}