Skip to content

Instantly share code, notes, and snippets.

@clreed87
Last active February 28, 2018 07:12
Show Gist options
  • Save clreed87/8763648dc4d8436ad6b106dbe9d26f07 to your computer and use it in GitHub Desktop.
Save clreed87/8763648dc4d8436ad6b106dbe9d26f07 to your computer and use it in GitHub Desktop.
Remove post title for status posts
<?php
// Do not include the opening php tag.
//* Remove post title for status posts
add_filter( 'post_class', 'crt_remove_status_post_titles' );
function crt_remove_status_post_titles( $classes ) {
if ( has_post_format( 'status' ) ) {
$classes[] = 'hidetitle';
}
return $classes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment