When a post is submitted by email and published WordPress Runs an action hook named 'publish_phone'
so you can get the post there and change its type like this:
add_action('publish_phone','custom_type_by_mail');
function custom_type_by_mail($post_id){
$p = get_post($post_id,'ARRAY_A');
$p['post_type'] = "YOUR_CUSTOM_TYPE_NAME_HERE";
wp_update_post($p);
}
Probably not the smartest way but it does work and its simple.
Related Posts:
- Sanitizing post content for use in an email
- Custom post type without editor or revisions – Notify on update?
- How to auto send email when publishing a custom post type?
- Sending an email when a CPT is saved/updated (NOT when it’s created)
- Email friend for each Custom Post Type posts on a page
- Send email button in custom post type backend
- Notify admin on new submit
- get_post_meta returning no value in custom post type alert email
- Adding the_content() in custom template email
- How can the recipients and content for comment email notifications on a custom post type be changed?
- How to insert data into meta box from another plugin?
- Generate new post from email
- Send email messages after comment was submitted
- Send post changes to set email addresses (not users or subscribers)
- Extending post by email
- See if the email exists or not
- CPT email notification including only new value custom fields
- Send email to author of the post when the custom post status changes to published
- Send mail to author when custom post type is saved
- BCC email to subscribers
- send email to all registered users when post expires
- CPT Metabox with email notification
- Emailing Authors only when a CUSTOM POST TYPE post is published- not when edited later [duplicate]
- How to create a job post by email parsing? [closed]
- Send email on creation of custom post type and use get_post_meta()
- How do I set the default admin sort order for a custom post type to a custom column?
- Adding Custom Post Type Counts to the Dashboard
- Custom Post Types not showing on Custom Taxonomy archive page
- is_singular() not working if called via callback function of admin-ajax.php
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- How to add meta boxes(repeater fields) from WordPress back end?
- Displaying Meta Box Image
- WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
- Query to get the author who having maximum number of post (custom post type)
- 404 Error with Custom Post Types and Taxonomy
- Extend the wp_get_archives output with ‘?post_type=foo’?
- How to add a “custom” date field to a custom post type?
- Custom post type with file upload – need to “set as field” instead of “send to editor”
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- WP Query—Relationship between two custom post types and their fields
- wp_list_pages(); Change output of hyperlink
- Create Custom Post Type Permalink Structure
- How to auto increment post title & post slug field?
- Plugin for custom posts and fields [closed]
- Setting proper query for multiple custom admin filters
- Custom meta box data array: foreach not working correctly?
- How to check if user meta field is empty in conditional else statement
- Display only one post each WEEK
- How to stick custom post at the top in search results
- Custom Post Types don’t highlight in menu nav
- Callback to custom field is not working in WordPress REST API
- How to display post list inside post
- Create a Dropdown from Custom Post Type
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Next Post links not working in custom post type shortcode
- custom comments form for custom post type
- Show Custom Taxonomy title in loop
- Advanced custom field boolean value in custom post type
- WP the_posts() on single-cars.php get category link
- When should I create custom post types?
- How do you create %post_type%/%postname%/ permalink structure?
- Custom Post Type Dilema – How do I categorise by country?
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Submitting Custom Post Types with custom fields from Front-end form
- Custom WP_Query always respond with 200 status even when no entry
- Why would social icon badges disappear after adding a custom post type?
- How to include category name/id in wp_query for retrieving “custom post type” from a particular category?
- Sort custom post type by most current date picker
- Using menu_position to add two entries between Dashboard and Posts
- custom permalink for post only not custom post types
- How to manage selected post-formats in custom post type
- Remove default WYSIWYG editor without removing custom fields editors
- Save CTP post meta different values each day without overwriting previous values
- Changing CPT slug and taxonomy already registered in parent theme
- Show post count number assigned to custom taxonomy
- Page-CPT.php redirects to archive or single.php
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- Creating on-page options for Custom Post Type
- Check when the post type changes, and display content
- Is possible register two archive pages for single custom post type?
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- Where is get_post_meta value located?
- 2 modal windows with ACF content on Archive page
- Custom Post Type – Display all, wrap in groups of 3
- Display post in sequence from different custom post_type
- Custom post meta box as a sub form
- Custom post type rewrite and wp_pagenavi interfering with each other
- WordPress loop, show only one post per custom field
- Getting list of Categories for Custom Post Types
- Adding Information To All Posts Screen
- get children from current variable (taxonomy) via shortcode
- Show Templates in Custom Post Type Editor
- Ideal top-level slug methods
- How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?
- Two blogs on same WP website
- Save post_parent in a custom post type
- Get post from custom post type that title is like custom string [closed]
- How to add a regular page under a custom post type?
- menu item to point to custom posts list
- An script/Plugin for automatic page creation per term