View class-whatsapp-checkout.php
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
<?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 |
View add-to-woocommerce-additional-info-tab-single-product.php
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
<?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; | |
} |