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
1399      function bulk_footer() {
1400           parent::bulk_footer();
1401           $update_actions =  array(
1402                'themes_page' => '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Go to themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>',
1403                '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>'
1404           );
1405           if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) )
1406                unset( $update_actions['themes_page'] );
1407
1408           $update_actions = apply_filters('update_bulk_theme_complete_actions', $update_actions, $this->theme_info );
1409           if ( ! empty($update_actions) )
1410                $this->feedback(implode(' | ', (array)$update_actions));
1411      }
1412 }
1413
1414 /**
1415  * Plugin Installer Skin for WordPress Plugin Installer.
1416  *
1417  * @TODO More Detailed docs, for methods as well.