Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: update_bulk_plugins_complete_actions

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
284      function bulk_footer() {
285           parent::bulk_footer();
286           $update_actions =  array(
287                'plugins_page' => '<a href="' . self_admin_url('plugins.php') . '" title="' . esc_attr__('Go to plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>',
288                'updates_page' => '<a href="' . self_admin_url('update-core.php') . '" title="' . esc_attr__('Go to WordPress Updates page') . '" target="_parent">' . __('Return to WordPress Updates') . '</a>'
289           );
290           if ( ! current_user_can( 'activate_plugins' ) )
291                unset( $update_actions['plugins_page'] );
292
293           $update_actions = apply_filters('update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info);
294           if ( ! empty($update_actions) )
295                $this->feedback(implode(' | ', (array)$update_actions));
296      }
297 }
298
299 class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
300      var $theme_info = array(); // Theme_Upgrader::bulk() will fill this in.
301
302      function __construct($args = array()) {