[wp-trac] [WordPress Trac] #12588: Add function to check if current page is a custom post type

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 15 08:55:07 UTC 2010


#12588: Add function to check if current page is a custom post type
----------------------------+-----------------------------------------------
 Reporter:  sirzooro        |       Owner:  nacin    
     Type:  defect (bug)    |      Status:  accepted 
 Priority:  normal          |   Milestone:  3.0      
Component:  Administration  |     Version:  3.0      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------

Comment(by sirzooro):

 I would like to be able to check if current page is of any registered post
 type. I have modified last patch a bit - with my change 1st function
 parameter is optional too and defaults to all registered post types.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12588#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list