Instantly share code, notes, and snippets.

Embed
What would you like to do?
Freemius Purchase Completion JavaScript Callback Filter
<?php
function my_after_purchase_js( $js_function ) {
return 'function (data) {
console.log("checkout", "purchaseCompleted");
}';
}
my_freemius()->add_filter('checkout/purchaseCompleted', ''my_after_purchase_js);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment