Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: update_bulk_theme_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
1381      function bulk_footer() {
1382           parent::bulk_footer();
1383           $update_actions =  array(
1384                'themes_page' => '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Go to themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>',
1385                '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>'
1386           );
1387           if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) )
1388                unset( $update_actions['themes_page'] );
1389
1390           $update_actions = apply_filters('update_bulk_theme_complete_actions', $update_actions, $this->theme_info );
1391           if ( ! empty($update_actions) )
1392                $this->feedback(implode(' | ', (array)$update_actions));
1393      }
1394 }
1395
1396 /**
1397  * Plugin Installer Skin for WordPress Plugin Installer.
1398  *
1399  * @TODO More Detailed docs, for methods as well.