Glossary H Hooks


Hooks are an integral part of WordPress development that deliver different bits of PHP logic to different hook locations to change, add, or remove to the pre-existing functionality.

For example, the wp_head hook is located within your site’s <head> tag and makes adding custom meta HTML tags easy. Instead of editing the entire head template, you can use a hook to insert a meta tag from any PHP file. As an example:

function md_child_custom_meta() { ?>
    <meta>Meta tag</meta>
<?php }
add_action( 'wp_head', 'md_child_custom_meta' );

More WordPress and MD Terms

Explore the full glossary for more key phrases and definitions.




Always Keep Learning

Get New Definitions, MD Releases, and Other Downloads Sent to Your Email

Join the MD newsletter to get new website tools, strategies, and other bonus downloads sent to your email in a respectful manner. If you use Marketers Delight to power your website, you do not want to miss out on these emails!

Start building your website with MD now

Get started with MD today. Pay once for use on unlimited websites.
* Save 40% on license key renewals every 12 months. Get auto-updates sent to 5 websites.


Get the latest MD sent straight to your inbox

There's always something new in the MD Labs! Join the email list to get the newest content and releases sent straight to your inbox.*

Join the MD Newsletter

* I only email you when there's something new, or to share an exciting MD sneak peak.