Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: restrict_manage_posts

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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