Last active
April 25, 2017 18:01
-
-
Save mariadanieldeepak/2a8569ff610e1fa7e05901aafdb2aafc to your computer and use it in GitHub Desktop.
Remove all Optins from WordPress posts
This file contains hidden or 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
$( document ).ready(function() { | |
$( document ).on("OptinMonsterBeforeShow", function(a, b, c) { | |
// Remove all optins whose ID begins with 'om-' | |
$( "[id^='om-']" ).remove(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment