You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
If you need to load your function very late on the page (i.e., after modals or popups), then change line 16 to this.
<?php }, 500 );
Increase 500 all the way up to 900 as needed. The higher the number the lower down in your page your code will load.
This isn't a guarantee since some plugins and themes are greedy and want to be the very last thing loaded (to override everything else).
If that's the case, you might need to wrap the JS in
setTimeout()
to delay the load even longer.