Custom Post Type support for Blog via Email
|Reported by:||raamdev||Owned by:||westi|
|Component:||Blog by Email||Keywords:|
Blog via Email doesn't currently support Custom Post Types. All posts submitted via email use the default post type of "post" (when the post data is constructed, the defaults are used: source:/branches/3.1/wp-mail.php#L208).
Support for choosing Custom Post Types could be handled the same way as selecting the Default Mail Category in Settings -> Writing. An extra dropdown that displays all available post types and allows for selecting a default post type could then be used in wp-mail.php (just like Default Mail Category: source:/branches/3.1/wp-mail.php#L206).
The only complications I foresee (without requiring more changes to wp-mail.php) are the need to ensure that the custom post type selected as the default supports post_title and post_category.
Even then, it wouldn't be tough to change the behavior of wp-mail.php to support whatever features the custom post type has (e.g., if it doesn't support post_title, discard the email subject instead of using it for something).
Are there plans to overhaul the entire Blog via Email section or would a patch for this feature be useful?