Posts tagged: hooks
How to Disable All Automatic Updates (WordPress Core, Plugins, and Themes)
Everyone has their own preference when it comes to automatic updates. Many folks like the idea of saving time and not having to “do” anything when updates are available. The problem is that updates don’t always go as planned. Unexpected things happen, conflicts, bugs, etc. Best-case scenario you save some time. Worst-case scenario your site goes down. Personally, I prefer to disable automatic updates for all the things: WordPress core, plugins, and themes. To do it, I use the following code snippets..
Precision Targeting with Custom Action Hooks
WordPress’ powerful action-hook system makes it possible to insert functionality at any point in your theme. Most WordPress themes include some of the built-in WordPress hooks by default. For example, most of us are aware of the two most common WordPress hooks: wp_head() and wp_footer(), which generally appear in the theme’s header and footer sections. These two hooks provide WordPress a location at which to execute various scripts and functions. For example, the wp_head() hook is where WordPress generates a variety of <link /> and <script></script> elements, among other things.
