[wp-trac] [WordPress Trac] #35810: New function: `is_post_type`

WordPress Trac noreply at wordpress.org
Fri Feb 12 12:44:46 UTC 2016


#35810: New function: `is_post_type`
-------------------------------+-----------------------------
 Reporter:  sebastian.pisula   |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 I think that helpful will be function:

 {{{#!php
 <?php
 if(is_post_type('CPT')) echo 'true'; else {echo 'false';}
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35810>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list