This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ini_set("log_errors", 1); | |
ini_set("error_log", __DIR__ . "/php-error.log"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Snippet by MI team - start. | |
add_action( 'woocommerce_after_single_product', function() { | |
if ( class_exists( 'MonsterInsights_eCommerce_WooCommerce_Integration' ) ) { | |
$mi_ec_woo = MonsterInsights_eCommerce_WooCommerce_Integration::get_instance(); | |
if ( method_exists( $mi_ec_woo, 'product_detail' ) ) { | |
$mi_ec_woo->product_detail(); | |
} | |
} | |
} ); | |
// Snippet by MI team - end. |