Home / posts / Default text in tinyMCE
  • How to Default text in tinyMCE

    no thumbnail sorry: Default text in tinyMCE

    Adding this code to the functions.php of your wordpress theme will automatically insert the default text into TinyMCE.

    ( click code to copy )

    wordpress snippet : PHP

    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;

    ( WordPress codex functions, hooks, in this snippet. )

    default_content, add_filter, _e,