[wp-trac] [WordPress Trac] #17147: Custom Post Type support for Blog via Email

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 16 01:30:19 UTC 2011


#17147: Custom Post Type support for Blog via Email
---------------------------+-----------------------------
 Reporter:  raamdev        |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Blog by Email  |    Version:  3.1
 Severity:  normal         |   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?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17147>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list