[wp-trac] [WordPress Trac] #27328: Conditional tags for wp-admin
WordPress Trac
noreply at wordpress.org
Sat Mar 8 19:30:01 UTC 2014
#27328: Conditional tags for wp-admin
----------------------------+------------------------------
Reporter: ericlewis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by ericlewis):
Some ideas:
```is_post_type_list_screen() // true for a listings screen of any post
type.```
```is_post_type_list_screen( 'post' ) // true for the posts listings
screen.```
```is_edit_screen() // true for an edit screen of any post type.```
```is_edit_screen( 'post' ) // true for a post edit screen.```
```is_edit_screen( 13 ) // true for the edit screen of post with an ID of
13.```
```is_add_new_screen() // true for an add new screen.```
```is_add_new_screen( 'post' ) ```
```is_settings_page( 'tools' )```
```is_taxonomy_edit_screen()```
```is_taxonomy_edit_screen( 'tag' )```
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27328#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list