I find the 3.3 Tooltips annoying when I’m upgrading many live and dev sites. How do I disable them via functions.php? Unenqueue wp-includes/js/wp-pointer.js ?
Leave a Reply
You must be logged in to post a comment.
I find the 3.3 Tooltips annoying when I’m upgrading many live and dev sites. How do I disable them via functions.php? Unenqueue wp-includes/js/wp-pointer.js ?
You must be logged in to post a comment.
You could also remove the pointer script and style from their respective arrays just after they have been registered using this method.
The
remove
method is part of the dependencies class which is extended by both theWP_Scripts
andWP_Styles
classes, it basically does the inverse of theadd
method, which is used inside core to register default scripts and styles. Mentioned incase you’re curious where that method comes from and what it’s for..I suppose you could also encapsulate those actions in a
current_user_can
check also if you wanted to wipe them out for specific users, say admins.Personally i quite like the new tooltips, and it’s quite a shame there’s not a simple API available for utilizing them in plugins yet, but i can see how it could be annoying when you’re doing numerous installs or upgrades and just need to get things done.
Yes, just dequeue the script (and the styles):
Or you can just disable them permanently for a specific user (only run once):