update_theme_complete_actions

Filters the list of action links available following a single theme update.

Description

apply_filters( 'update_theme_complete_actions', (array) $update_actions, (string) $this_theme ); 

Parameters (2)

0. $update_actions (array)
Array of theme action links.
1. $this_theme (string)
Theme directory name.

Usage

To run the hook, copy the example below.
  1. $update_actions = apply_filters( 'update_theme_complete_actions', $update_actions, $this_theme ); 
  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_theme_complete_actions callback 
  2. function filter_update_theme_complete_actions( $update_actions, $this_theme ) { 
  3. // make filter magic happen here... 
  4. return $update_actions
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'update_theme_complete_actions', 'filter_update_theme_complete_actions', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'update_theme_complete_actions', 'filter_update_theme_complete_actions', 10, 2 ); 

Defined (1)

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

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