Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Makarand Mane MakarandMane

🎯
Focusing
View GitHub Profile
@MakarandMane
MakarandMane / disable-betheme-notifications-license-error.php
Last active Aug 29, 2018
This is my private to hide betheme license purchase error notice on admin panel.
View disable-betheme-notifications-license-error.php
<?php
//This is variable is also used in parent theme i.e. BeTheme
//Set it false to show other betheme options.
define( 'WHITE_LABEL', true );
add_action( 'admin_menu','while_label_theme', 13 );
function while_label_theme(){
if( WHITE_LABEL ){
@MakarandMane
MakarandMane / woocommerce-checkout-disable-coupon-form.php
Last active May 23, 2018
Remove coupon code form before woocommerce checkout form.
View woocommerce-checkout-disable-coupon-form.php
function luxeluck_remove_coupon_form(){
add_filter( 'woocommerce_coupons_enabled', __return_false );
}
add_action('woocommerce_before_checkout_form', 'luxeluck_remove_coupon_form', 1);
You can’t perform that action at this time.