How To Set default Content in WordPress editor


Sponsored Links




There are some reason we need to add automatically default content in WordPress Post. The main reason for us is, re write some content again and again, It’s really pain.

Added Content Automatically WordPress

Added Content Automatically WordPress

Justin Tadlock has been create some function and this function will be add extra content automatically when you started create new post.

First, open your functions.php and re write this code below

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;
}

On the code above you’ll find standard text at there “If you enjoyed this post, make sure to subscribe to my rss feed”, you can change everything you need to put and save your code.

The starting write fresh content, and the text will be add automatically. That’s it, now you understand How To Set default Content in WordPress editor

Photos from http://www.flickr.com/photos/usacehq/5164275757/

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net


One Response to How To Set default Content in WordPress editor

  1. Pingback: Tweets that mention How To Set default Content in WordPress editor # WordPress Tricks & Tips -- Topsy.com

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>