install_theme_complete_actions

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

Description

apply_filters( 'install_theme_complete_actions', (array) $install_actions, (object) $this_api, (string) $stylesheet, (WP_Theme) $theme_info ); 

Parameters (4)

0. $install_actions (array)
Array of theme action links.
1. $this_api (object)
Object containing WordPress.org API theme data.
2. $stylesheet (string)
Theme directory name.
3. $theme_info (WP_Theme)
The theme info.

Usage

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

Defined (5)

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

/wp-admin/includes/class-theme-installer-skin.php  
  1. $install_actions = apply_filters( 'install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info ); 
/wp-admin/includes/class-theme-upgrader.php  
  1. add_filter('install_theme_complete_actions', array($this, 'hide_activate_preview_actions') ); 
  1. add_filter('install_theme_complete_actions', '__return_false', 999); // Don't show any actions after installing the theme. 
  1. add_filter('install_theme_complete_actions', array($this, 'hide_activate_preview_actions') ); 
  1. remove_filter('install_theme_complete_actions', '__return_false', 999);