WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 487 | $q['cat'] = (int) $q['cat']; |
| 488 | $post_stati = array( // array( adj, noun ) |
| 489 | 'publish' => array(__('Published'), __('Published posts'), __ngettext_noop('Published (%s)', 'Published (%s)')), |
| 490 | 'future' => array(__('Scheduled'), __('Scheduled posts'), __ngettext_noop('Scheduled (%s)', 'Scheduled (%s)')), |
| 491 | 'pending' => array(__('Pending Review'), __('Pending posts'), __ngettext_noop('Pending Review (%s)', 'Pending Review (%s)')), |
| 492 | 'draft' => array(__('Draft'), _c('Drafts|manage posts header'), __ngettext_noop('Draft (%s)', 'Drafts (%s)')), |
| 493 | 'private' => array(__('Private'), __('Private posts'), __ngettext_noop('Private (%s)', 'Private (%s)')), |
| 494 | ); |
| 495 | |
| 496 | $post_stati = apply_filters('post_stati', $post_stati); |
| 497 | |
| 498 | $avail_post_stati = get_available_post_statuses('post'); |
| 499 | |
| 500 | $post_status_q = ''; |
| 501 | if ( isset($q['post_status']) && in_array( $q['post_status'], array_keys($post_stati) ) ) { |
| 502 | $post_status_q = '&post_status=' . $q['post_status']; |
| 503 | $post_status_q .= '&perm=readable'; |
| 504 | } |
| 505 | |