-
-
Save jtsternberg/a9c8ceccc5f0d84606e6ab97b72e7d49 to your computer and use it in GitHub Desktop.
OptinMonster Dynamic Text Replacement API - deleteCustomVariable
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
<script type="text/javascript"> | |
document.addEventListener('om.Dtr.init', function(event) { | |
/** | |
* API method for deleting a custom variable. Must be accessed via the Dtr object. | |
* | |
* @param string $key The custom variable to delete. | |
* @return null | |
*/ | |
event.detail.Dtr.deleteCustomVariable('foo'); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment