Last active
March 28, 2023 13:30
Star
You must be signed in to star a gist
Filter WooCommerce order status sent to Google Analytics Enhanced Ecommerce
This file contains 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
function sp_gtag_ec_status($status) { | |
//default status | |
//$status = ['completed', 'processing']; | |
//Other available status: 'pending', 'on-hold', 'cancelled', 'refunded', 'failed', 'checkout-draft' | |
return $status; | |
} | |
add_filter('seopress_gtag_ec_status', 'sp_gtag_ec_status'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment