seancojr
8/31/2013 - 8:14 PM

Add default post content In WordPress content editor. Source: http://smartwebworker.com/293-default-content-in-wordpress-editor/

Add default post content In WordPress content editor.

Source: http://smartwebworker.com/293-default-content-in-wordpress-editor/

<?php
add_filter( 'default_content', 'add_default_content' );
function add_default_content( $content ) {
  global $post_type;
	switch ( $post_type ) {
		case 'post':
			$content = "<p>This will be the first paragraph of all new BLOGPOSTS. I am adding a default paragraph. You can add any HTML code or text.</p>";
			break;
		case 'page':
			$content = "<p>This will be the first paragraph of all new PAGES. I am adding a default paragraph. You can add any HTML code or text.</p>";
			break;
	}
	return $content;
}
?>