Last active
December 18, 2015 17:39
-
-
Save andyknapp/5819806 to your computer and use it in GitHub Desktop.
Default text in WP wysiwyg editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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