Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi there,

    Sorry for the late reply on this. Thanks for using our plugins.

    Please update the plugin to the latest (1.3.0) version, we’ve implemented PHP cookie checking functions like:

    gdpr_cookie_is_accepted( 'strict' )
    gdpr_cookie_is_accepted( 'thirdparty' )
    gdpr_cookie_is_accepted( 'advanced' )

    So using the functions above, you can disable the Facebook plugin for WooCommerce using the following codesnippet:

    add_filter('facebook_for_woocommerce_integration_pixel_enabled', 'gdpr_cookie_facebook_wc', 20);
    
    function gdpr_cookie_facebook_wc() {
    	$enable_fb_wc = true;
    	if ( function_exists( 'gdpr_cookie_is_accepted' ) ) :
    		$enable_fb_wc = gdpr_cookie_is_accepted( 'thirdparty' );
    	endif;
    	return $enable_fb_wc;
    }
    add_action( 'gdpr_force_reload', '__return_true' );

    Edit: Don’t forget to enable the force_reload once the code snippet is added (gdpr_force_reload hook from the snippet above)!

    I hope this helps.

    • This reply was modified 7 years, 6 months ago by Moove Agency.
Viewing 1 replies (of 1 total)

The topic ‘Official WooCommerce Facebook Pixel Plugin’ is closed to new replies.