Skip to content

Instantly share code, notes, and snippets.

@andyknapp
Last active December 18, 2015 17:39
Show Gist options
  • Save andyknapp/5819806 to your computer and use it in GitHub Desktop.
Save andyknapp/5819806 to your computer and use it in GitHub Desktop.
Default text in WP wysiwyg editor
function ak_editor_content( $content ) {
$content.= "<p>This content is now default text in the wysiwyg editor.</p>";
$content.= "<p>And so is this";
return $content;
}
add_filter( 'default_content', 'ak_editor_content');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment