Hide excerpts for all WordPress posts

add_filter( 'the_excerpt', 'custom_excerpt' );
function custom_excerpt() {
    return '';
}

Leave a Comment