[Plugin: WP Maintenance Mode] Where to place hook script
-
Where can I place the hook scripts such that they would not be overwritten by a plugin update? From your example:
function add_my_link() { echo '<a href="https://mylink.com/">My Link</a> } add_action( 'wm_footer', 'add_my_link' )
Usually I would place such a thing in my theme’s functions.php, but I wasn’t sure that this was the correct location for this particular case.
Thanks!
https://www.ads-software.com/extend/plugins/wp-maintenance-mode/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: WP Maintenance Mode] Where to place hook script’ is closed to new replies.