[wp-trac] [WordPress Trac] #10449: Add Calendar Events as first-class data type
WordPress Trac
wp-trac at lists.automattic.com
Sun Jul 19 21:37:28 UTC 2009
#10449: Add Calendar Events as first-class data type
-----------------------------+----------------------------------------------
Reporter: mikeschinkel | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 2.9
Severity: normal | Keywords: dev-feedback 2nd-opinion
-----------------------------+----------------------------------------------
Changes (by dd32):
* keywords: calendar events post types => dev-feedback 2nd-opinion
* version: => 2.9
* milestone: Unassigned => Future Release
Comment:
Adding a calendar event instead of a post is as simple as
{{{
$calendar_object = (object)array('post_title' => 'The Title', 'post_date'
=> '2009 08 4 5pm', 'post_type' => 'calendar');
wp_insert_post($calendar_object);
}}}
In other words, it only requires setting an extra post_type field.. IMO,
They're plugins, They can deal with having an extra flag if thats the
route they'd like to take (a new post type)
Unless WordPress is going to include a full event calender inside
WordPress, theres no point adding the API. So i assume thats what you're
asking? To merge one of the plugins into core with the ability for other
plugins to override?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10449#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list