update_bulk_theme_complete_actions

Filters the list of action links available following bulk theme updates.

Description

apply_filters( 'update_bulk_theme_complete_actions', (array) $update_actions, (array) $this_theme_info ); 

Parameters (2)

0. $update_actions (array)
Array of theme action links.
1. $this_theme_info (array)
Array of information for the last-updated theme.

Usage

To run the hook, copy the example below.
  1. $update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this_theme_info ); 
  2.  
  3. if ( !empty( $update_actions ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the update_bulk_theme_complete_actions callback 
  2. function filter_update_bulk_theme_complete_actions( $update_actions, $this_theme_info ) { 
  3. // make filter magic happen here... 
  4. return $update_actions
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'update_bulk_theme_complete_actions', 'filter_update_bulk_theme_complete_actions', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'update_bulk_theme_complete_actions', 'filter_update_bulk_theme_complete_actions', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-admin/includes/class-bulk-theme-upgrader-skin.php  
  1. $update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info );