Embedding Hybrid Hooks in Code

The Hybrid Hooks PlugIn is great for quickly testing something but once it is working then it is secure from accidental editing if it is transferred to functions.php. I added a <div class=”halo”></div> “before_content” to provide the halo around post elements. Once this was stable and signed off, I transferred it into functions.php very simply:

add_action( 'hybrid_before_content', 'halo_add_halo_div' );

function halo_add_halo_div() {
echo '<div class="halo"></div>';
}

Then the entry on the Hybrid Hooks PlugIn screen can be deleted. Job done.