Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtsternberg/a9c8ceccc5f0d84606e6ab97b72e7d49 to your computer and use it in GitHub Desktop.
Save jtsternberg/a9c8ceccc5f0d84606e6ab97b72e7d49 to your computer and use it in GitHub Desktop.
OptinMonster Dynamic Text Replacement API - deleteCustomVariable
<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