Last active
February 28, 2018 07:12
-
-
Save clreed87/8763648dc4d8436ad6b106dbe9d26f07 to your computer and use it in GitHub Desktop.
Remove post title for status posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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