[wp-trac] Re: [WordPress Trac] #2433: Provide some API for WP_Rewrite

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 16 12:14:52 GMT 2006


#2433: Provide some API for WP_Rewrite
----------------------------+-----------------------------------------------
       Id:  2433            |      Status:  new                     
Component:  Administration  |    Modified:  Thu Feb 16 12:14:52 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  anonymous       |    Reporter:  davidhouse              
----------------------------+-----------------------------------------------
Comment (by davidhouse):

 Here's add_endpoint(). I haven't converted trackback over to using said
 function yet because trackback URLs are required after, say
 {{{<permalink>/attachment/}}} URLs, and the best add_endpoint() currently
 offers is to put your endpoint after a permalink.

 Similarly to add_rewrite_tag(), you don't pass any callbacks to
 add_endpoint(). The function sets up the rewrite rules for you, then you
 add your own filters onto whichever hooks you please.

 The constants available are EP_PERMALINK, EP_DATE, EP_ROOT, EP_COMMENTS,
 EP_SEARCH, EP_CATEGORIES, EP_AUTHORS, EP_PAGES. There are also two extra
 constants available for convenience, EP_NONE and EP_ALL.

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


More information about the wp-trac mailing list