[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
Sun Apr 18 17:40:55 UTC 2010
#12588: Add function to check if current page is a custom post type
----------------------------+-----------------------------------------------
Reporter: sirzooro | Owner: nacin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.0
Component: Administration | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch |
----------------------------+-----------------------------------------------
Changes (by nacin):
* status: accepted => closed
* resolution: => fixed
Comment:
(In [14158]) Introduce is_post_type(). Can check if a post type is
registered, or also if a post (current or specified) is of a certain post
type. fixes #12588, props sirzooro, blepoxp, rmccue
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12588#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list