• Resolved jurij_c

    (@jurij_c)


    Hello,

    I wanted to make some adjustments to the way js script is loading
    (to load through tag manager with 1500ms delay), but could not remove action.

    add_action( ‘wp_head’, ‘remove_my_class_action’ );
    function remove_my_class_action() {
    global $hub_woo;
    remove_action( ‘wp_footer’, array( $hub_woo, ‘hubwoo_add_hs_script’));
    }
    $hub_woo is null. Tried diffent solutions ??
    The exact action is Hubwoo_Public->hubwoo_add_hs_script() and action_add is in Hubwoo class – so it gets me confused how to address this action.

    Please help with that

    • This topic was modified 4 years, 2 months ago by jurij_c.
    • This topic was modified 4 years, 2 months ago by jurij_c.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author MakeWebBetter

    (@makewebbetter)

    Hello @jurij_c

    Thanks for using our Hubspot for Woocommerce Integration

    Please use $hubwoo instead of $hub_woo.

    If you still have any queries feel free to contact with us over support.

    We are here to help.

    Thanks

    Thread Starter jurij_c

    (@jurij_c)

    Thanks! that is indeed $hubwoo!

    Unfortunatly it still doesn’t work, I suppose it’s because this action is defined in Hubwoo_Public.
    I have no idea how to disable this action

    Appreciate your help

    Plugin Author MakeWebBetter

    (@makewebbetter)

    Hey @jurij_c ,

    We Can customize our plugin as per your need. Please mail us here for custom request.

    Thanks and Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trying to disable HS js script to load it with TagManager’ is closed to new replies.