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 |
---|---|
86 | function extra_tablenav( $which ) { |
87 | global $post_type; |
88 | $post_type_obj = get_post_type_object( $post_type ); |
89 | ?> |
90 | <div class="alignleft actions"> |
91 | <?php |
92 | if ( 'top' == $which && !is_singular() && !$this->detached && !$this->is_trash ) { |
93 | $this->months_dropdown( $post_type ); |
94 |
|
95 | do_action( 'restrict_manage_posts' ); |
96 | submit_button( __( 'Filter' ), 'secondary', false, false, array( 'id' => 'post-query-submit' ) ); |
97 | } |
98 |
|
99 | if ( $this->detached ) { |
100 | submit_button( __( 'Scan for lost attachments' ), 'secondary', 'find_detached', false ); |
101 | } elseif ( $this->is_trash && current_user_can( 'edit_others_posts' ) ) { |
102 | submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false ); |
103 | } ?> |
104 | </div> |