You can change ‘post’ to which ever post type you want to apply the default content to.
add_filter( 'default_content', 'wpse57907_default_content', 10, 2 );
function wpse57907_default_content( $content, $post ) {
if ( 'post' == $post->post_type )
$content="Use this area to write an introduction to the course...";
return $content;
}
Edit
I’m not sure you can add placeholder text to tinymce editors. The followng method will add a placeholder to the underlying textarea (you can view it on the ‘html’, soon to be ‘text’ tab):
add_filter('the_editor','wpse57907_add_placeholder');
function wpse57907_add_placeholder( $html ){
$html = preg_replace('/<textarea/', '<textarea placeholder="my place holder text" ', $html);
return $html;
}
But this does not appear on the visual editor (as I say, I’m not sure placeholders work with TinyMCE – if someone knows how, please comment.).
Related Posts:
- Disable Auto-Expanding Menu in WordPress Admin Menus
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
- maintaing consistent layout wordpress dashboard
- Global State During an Admin Post
- Admin – Handle data before creating or updating a post, page or custom post
- How can I replace content in the WP Admin area before an admin page is rendered?
- Creating Admin Plugin – Content of a page is displayed at global scope as well
- Add a page in admin without adding menu item
- Best practice for plugin: always detect admin-ajax call?
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Proper way to create an administration page without adding it to the menu
- How to add text editor in plugin menu?
- How to make an admin plugin menu page go full screen?
- Forcing ALL plugin Admin menus into a separate menu
- modify buddpress adminbar only in admin pages
- How can I add an image upload field directly to a custom write panel?
- Creating a table in the admin-style?
- Is it possible to reuse wp.media.editor Modal for dialogs other than media
- How do i best handle custom plugin page actions?
- How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?
- Change admin language based on user (in single-site)
- Export data as CSV in back end with proper HTTP headers
- Admin settings update updating every time home page is hit?
- What’s the best method for emptying an option created with the Settings API?
- What is the recommended way to create plugin administration forms?
- Hook the Keydown Event in the TinyMCE Post Editor
- How do you create a custom edit.php / edit pages page
- Cancel post save
- How to add HTML / Form to an Admin Bar Menu
- Create a clickable name in WP_List_Table for Plugin Admin
- Add column to pages table
- Error with Custom Admin Screen in iframe Thickbox
- Add Admin Menu Inside Construct or Init
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- How to add custom content under plugin row in WordPress admin plugin list?
- How to prevent parent admin page from appearring as a child admin page
- JS / JQuery form validation in backend admin menus
- Plugin with specific admin menu icon
- What does $_registered_pages do?
- Add tab to profile.php wordpress plugin development
- WordPress Ajax callback function from plugin – OOP
- Change top level menu item to point to custom submenu item
- How to run a external JavaScript file on wp-admin if admin, and other if normal user?
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- add a class when login
- Add a panel to edit post
- Using the default wordpress uploader inside plugin
- Any problem in using native jquery ajax style instead of using admin-ajax.php?
- Replacing Scripts in Admin Load_Scripts
- Howto: Use Custom Post Types as Submenu Items in Admin
- Correct check for any admin page with editor
- All Users > User List > Update User Meta Field Inline
- On cliking add new post redirect user to a custom page first
- Set different custom menu items for different user roles
- Show/Hide ‘add new user’ custom fields in wordpress admin panel by click another field
- Prevent third party plugin’s admin page access based on user type
- Bootstrap doesn’t work on admin menu page-How to override wp-admin style?
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- How to load library scripts in admin from plugins in noConflict wrapper?
- 500 internal server error on wp-admin only
- Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins
- How to Move the Comments Bubble to the Right Side of the Toolbar
- How do I add a favicon that only shows during viewing of my plugin’s admin panel?
- Does admin_print_scripts-$hook_suffix work for nested paths to individual files?
- 400 Bad Request, in wordpress theme development, wp_ajax
- How to import the css in the plugin admin area?
- Creating multiple wp_editer() text fields in for loop — the text/visual switch only works for first editor
- Displaying “One Time” Notification in Plugins
- Print Dashboard submenu name and filename
- How to group navigation items in the admin panel
- Admin Subpages without Menu entry
- creating a plug in that would tap into save/update action of posts [closed]
- Admin top level menu, pointing to an external url
- Data not insert and update through ajax and jQuery in admin page?
- Catching Form Submission in WordPress Admin Panel
- Is it possible to load the css just on my plugin admin page?
- AJAX button with success callback. (Titan Framework)
- Creating custom admin panel pages without making a plugin?
- How do I force a download in the admin area?
- Submit form to a different PHP file in the same plugin folder
- Remove Permalink Meta Box not working?
- using admin functions on frontend
- Pause plugin option page until all data manipulation is complete
- Get cat parameter from admin-ajax
- WordPress admin panel not working
- Change Label of custom post type
- How to create plugin settings page for each admin user?
- How to enable or disable check boxes in custom post type
- How to return a blank page
- Same header/footer in Admin, across all network sites in multisite
- How to add conent (text) to Add New pages form of admin in WordPress
- Add a description/hint field in the admin page of a plugin
- Getting 404 page not found error while trying to access add new plugin / themes
- Plugin admin list pages as submenu
- Post data in wp-admin to external database
- WordPress multiple user roles accessing on their information on one site?
- Loading jQuery library from WordPress admin
- How to design WooCommerce-like admin tabs for plugin settings page?
- How to prepend a header section to all pages related to my WordPress Plugin