/ Published in: PHP
URL: http://www.catswhocode.com/blog/killer-hacks-to-enhance-wordpress-editor
Do you always insert the same text on all your posts, for example to tell people to subscribe to your rss feed? If yes, you should definitely set up WP to have it automatically inserted in the editor. Open your functions.php file, and paste this code. That’s all you need to do to define some default content.
Expand |
Embed | Plain Text
add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "If you enjoyed this post, make sure to subscribe to my rss feed."; return $content; }
You need to login to post a comment.
