Glossary H Hooks

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.

F

FTP

S

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!