Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Gaurav Tiwari wpgaurav

🎯
Focusing
View GitHub Profile
@wpgaurav
wpgaurav / Mdhooks.php
Last active Oct 16, 2020
Marketers Delight Hooks
View Mdhooks.php
<?php
// Display Custom Excerpt below the headline on single posts.
function excerpt_single_post() {
if ( is_singular( 'post' ) && has_excerpt() ) {
the_excerpt();
}
}
add_action ('md_hook_after_headline', 'excerpt_single_post');
?>