Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Freemius Purchase Completion JavaScript Callback Filter
function my_after_purchase_js( $js_function ) {
return 'function (data) {
console.log("checkout", "purchaseCompleted");
my_freemius()->add_filter('checkout/purchaseCompleted', ''my_after_purchase_js);

This comment has been minimized.

Copy link

irfan-blackandwhite commented Feb 26, 2020

would you elaborate where does this code goes. shell i add this code to the plugin header where Facebook pixel code already added or somewhere else?
Many thanks
irfan Qasim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.