Skip to content

Instantly share code, notes, and snippets.

View class-whatsapp-checkout.php
<?php
class SolusiPress_WA_Checkout {
protected $version = '0.9.2';
protected $wa_number = '6281314997198';
protected $resend_text = 'Click here if your browser not redirect to WhatsApp';
protected $wa_message_template = <<<EOT
Halo kak,
Berikut pesanan saya, mohon segera diproses
@ben-heath
ben-heath / add-to-woocommerce-additional-info-tab-single-product.php
Last active Oct 13, 2022
Add content to WooCommerce Additional Information Tab on Single Products
View add-to-woocommerce-additional-info-tab-single-product.php
<?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;
}