Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pre_current_active_plugins

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
381 <?php screen_icon(); ?>
382 <h2><?php echo esc_html( $title );
383 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
384 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
385 <?php }
386 if ( $s )
387      printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
388 </h2>
389
390 <?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
391
392 <?php $wp_list_table->views(); ?>
393
394 <form method="post" action="">
395
396 <?php $wp_list_table->search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?>
397
398 <input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" />
399 <input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" />