Log in to support

woocommerce deprecated function

Landing How can we help? Themeforest Theme Support Neighborhood woocommerce deprecated function

Viewing 5 posts - 1 through 5 (of 5 total)
  • Post count: 8
    May 14, 2017 at 3:12 pm #324549

    In this file:
    wp-content\themes\neighborhood\includes\swift-framework\sf-woocommerce.php

    there is this line:
    add_filter('add_to_cart_fragments', 'sf_woo_header_add_to_cart_fragment');

    I am getting this error in my error_log:

    The "add_to_cart_fragments" hook uses out of date data structures and function is deprecated since version 3.0.5. Replace with woocommerce_add_to_cart_fragments.

    Should your code be updated to:

    add_filter('woocommerce_add_to_cart_fragments', 'sf_woo_header_add_to_cart_fragment');

    Thanks

    Post count: 20834
    May 15, 2017 at 10:57 am #324580

    Replies only viewable for logged in users

    Post count: 8
    May 15, 2017 at 4:32 pm #324654

    Replies only viewable for logged in users

    Post count: 25779
    May 15, 2017 at 4:53 pm #324657

    Replies only viewable for logged in users

    Post count: 15264
    May 16, 2017 at 3:59 am #324717

    Replies only viewable for logged in users

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register