fbpx

Developer’s Notes: How to Disable Pixel Integration for “Facebook for WooCommerce” Plugin

A client of ours used for product feed generation Facebook for Woocommerce plugin. When we handled their digital marketing presence and strategy, we had to use a more advanced feed file—something which the plugin couldn’t provide.

For technical reasons, which are out of the current post’s scope, we didn’t want to delete the plugin, but we had to disable the plugin’s Pixel integration. Since there was no option in the plugins setting, we had to use the simple following hook in the functions.php file.

/* Facebook for Woocommerce - Disable Pixel */
add_filter('facebook_for_woocommerce_integration_pixel_enabled', '__return_false', 20);

Share your thoughts