Article link: https://wpshout.com/quick-guides/wp-footer-an-action-hook-example/
This is a simple and slightly contrived example of plugin that is adding some text/HTML to the footer of a WordPress site WITHOUT ANY THEME MODIFICATIONS. It’s not a great example, but it illustrates the basics of action hooks in WordPress.
WPShout’s comprehensive walk-though of action and filter hooks in WordPress: https://wpshout.com/wordpress-hooks-actions-filters-work/
Subscribe to the channel, check out our site: http://wpshout.com/
We’re also on Twitter (https://twitter.com/WPShout) and Facebook (https://www.facebook.com/WPShout/)