Created
March 22, 2013 04:44
-
-
Save spencejs/5218983 to your computer and use it in GitHub Desktop.
Custom Title Field Text By Post Type In Wordpress
This file contains hidden or 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
| //Change Title By Post Type | |
| function custom_title_text( $title ){ | |
| $screen = get_current_screen(); | |
| if ( 'issues' == $screen->post_type ) { | |
| $title = 'Issue Months and Year e.g. "Jul/Aug 2011"'; | |
| } | |
| return $title; | |
| } | |
| add_filter( 'enter_title_here', 'custom_title_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment