Created
June 13, 2012 08:11
-
-
Save evansolomon/2922692 to your computer and use it in GitHub Desktop.
Capitalize category names in WordPress
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 | |
/* | |
Plugin name: Capitalize category names on display | |
Description: Capitalize the first letter of a category name when it's displayed in the theme | |
*/ | |
function capitalize_category_names_on_display( $name ) { | |
return ucfirst( $name ); | |
} | |
add_filter( 'single_cat_title', 'capitalize_category_names_on_display' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment