#12950 closed enhancement (fixed)
Introduce is_post_type_hierarchical()
| Reported by: | ptahdunbar | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Posts, Post Types | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Patch adds a new is_post_type_hierarchical() function to wp-includes/post.php.
It accepts one parameter which can be the post type name, id, or a post object and it will return a boolean result.
Attachments (1)
Change History (5)
#2
@
16 years ago
Leaving this open for implementation throughout WordPress.
I changed the patch slightly, adding a few sanity checks to prevent PHP Warnings (Accessing non-existant properties, attempting to use a object as a array indicy, etc)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [14053]) Introduce is_post_type_hierarchical(). Props ptahdunbar. See #12950