Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Bhajan Das

    (@bdas)

    Thank you so much.. last one updated code working.

    Working code is:

    add_action(‘wp_loaded’, ‘remove_cashback_notice’);
    if(!function_exists(‘remove_cashback_notice’)){
    function remove_cashback_notice(){
    if(class_exists(‘Woo_Wallet_Frontend’)){
    remove_action(‘woocommerce_shop_loop_item_title’, array(Woo_Wallet_Frontend::instance(), ‘display_cashback’), 15);
    remove_action(‘woocommerce_single_product_summary’, array(Woo_Wallet_Frontend::instance(), ‘display_cashback’), 15);
    }
    }
    }

    Thank you so much for your support.

    Thread Starter Bhajan Das

    (@bdas)

    I have try the solution as your provide above, and the following error shown:

    ——————
    Your PHP code changes were rolled back due to an error on line 757 of file wp-content/themes/enfold/functions.php. Please fix and try saving again.

    Uncaught Error: Class ‘Woo_Wallet_Frontend’ not found in wp-content/themes/enfold/functions.php:757
    Stack trace:
    #0 wp-includes/class-wp-hook.php(288): remove_cashback_notice(”)
    #1 wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #2 wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 wp-settings.php(545): do_action(‘wp_loaded’)
    #4 wp-config.php(92): require_once(‘/home/xxxxxfr8/…’)
    #5 wp-load.php(37): require_once(‘/home/bagrofr8/…’)
    #6 wp-admin/admin.php(34): require_once(‘/home/xxxxxfr8/…’)
    #7 /home/bagrofr8/public_html/xxxxxxxxxx
    ————————————————————————

Viewing 2 replies - 1 through 2 (of 2 total)