You can do this like this: (answering from mobile. Please forgive if the markup is broken)
add_filter( 'default_content', 'preloaded_editor_content', 10, 2 );
function preloaded_editor_content( $content, $post ) {
switch( $post->post_type ) {
case 'your_post_type':
$content="your content";
break;
default:
$content="your default content";
break;
}
return $content;
}
Related Posts:
- Assign Page Template Within A Custom Post Type
- Adding the_content() in custom template email
- Custom URL redirect in WP
- How to get the current category with custom posts
- Displaying posts inside table having issues
- Correctly delete posts with meta and attachments [duplicate]
- Why are the comments disabled by default on my custom_post_types?
- Linking Two Post Types
- Custom Post Types on Category Pages
- Creating “static” taxonomies to choose from, inside custom post type?
- How do I filter the excerpt metabox description in admin?
- Setting up custom post type archives in WP3.1? Any luck?
- Best Way to Create a List of Musician Gigs in WordPress
- TV Show database – Best way for structuring it?
- Add custom field to media attachment image attribute in post editor
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- Custom post type archive and single.php files not working
- Query posts by custom post type and custom taxonomy
- WordPress custom post type Single.php?
- After deleting a post are terms, and custom meta deleted?
- Control Custom Post Type template from a plugin
- Storing Custom Post Type Data in a Custom Table
- Get the post children count of a post
- Detect if 1st, 2nd or 3rd level custom page?
- Create second custom 404 page for selected post type
- Sub-Sub-Blogs — creating and importing content into a custom sub-type
- Check Title Unique Or Not and If not error message and dont save
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- Show Two custom Post type and their posts on category page
- Can I make WordPress use a custom template for a child page
- Custom post type and body_class: Remove “blog” class
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- Create Template for Custom Post Type same like for Page
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- How to load a template without it being assigned to a page/post?
- create a template page for a post
- How to check post type (to include custom css)
- Display only one post each WEEK
- Define new user capability for custom post types?
- How to allow visitors to enter custom post type?
- delete_published_posts does not work
- How to render a custom post type template with custom fields using shortcode
- How to handle paged param in post and custom-post-type?
- Shortcode to display Staff post type based on Location post type and Specialty post type
- Cannot save CPT meta box
- non-hierarchical post type with hierarchical url structure
- next_/previous_post_link() `in_same_category` appears to fail when true
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- How can I have different content for different countries?
- Include php on a specific page template
- Page Template Dropdown For Custom Post Types
- List Categories (wp_terms) and count posts
- Get_the_terms restrict output
- How to insert data into meta box from another plugin?
- YOAST SEO won’t work on custom post type archive [closed]
- providing access to post_id or post inside functions.php
- List All Custom Post Types Posts in Nav Menu Dynamically
- Display custom post type for specific user
- post_content is stripping HTML when adding a new post? [closed]
- WordPress Count posts within a custom post type
- Enabling permalinks disables custom page template
- Custom Post Type Template Insert not working properply
- $wpdb is queried but results don’t show
- Loop and add Specific Categories and Products Images
- How to keep a record of changes to a custom field?
- custom post template ignored after altering permalinks
- How to create Custom image post?
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Custom Post Type Implementation
- Display ONE taxonomy and its assigned pages
- Related “custom post type” using “custom taxonomy”
- How do I disable the built-in editor and automatically configure the properties of new pages?
- How to have multiple search result pages in wordpress with taxonomy terms listed
- How to limit the number of custom posts certain users can publish in WordPress using php script?
- Custom page for creating/editing custom post type
- Set a Default CPT taxonomy by taxonomy id
- Showing Custom Post Type with his templates on a custom page template
- Automatic Set Category For A Custom Post Type
- Publish metabox postition?
- Need folder for CPT templates for eg: single-{post_type}.php
- In the admin, how can you list thumbnails instead of titles for a custom post type?
- WordPress deletes custom posts instead of trash them
- Permanent Custom Post Type
- creating a custom post template
- Templates list in “Page Attributes” metabox is inaccurate
- Display all post types together
- Collection of fields in a single post
- Make title field multiline in the add new custom post page?
- Multiple search template with separate stylesheets
- Using custom post types within a section of a template
- What’s the best way to show custom post types? With page template it’s not perfect!
- Dynamically change Custom Post Type Template OR Change Permalink?
- How to add custom column to Custom post page list?
- using a template for more then 1 page
- show posts under custom post type with same autj
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- display posts, pages and custom post types from another wordpress site
- How to develop Knowledge center in WordPress Website