Filter hook 'install_theme_complete_actions'

in WP Core File wp-admin/includes/class-theme-installer-skin.php at line 190

View Source

install_theme_complete_actions

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

Hook Information

File Location wp-admin/includes/class-theme-installer-skin.php View on GitHub
Hook Type Filter
Line Number 190

Hook Parameters

Type Name Description
string[] $install_actions Array of theme action links.
object $api Object containing WordPress.org API theme data.
string $stylesheet Theme directory name.
WP_Theme $theme_info Theme object.

Usage Examples

Basic Usage
<?php
// Hook into install_theme_complete_actions
add_filter('install_theme_complete_actions', 'my_custom_filter', 10, 4);

function my_custom_filter($install_actions, $api, $stylesheet, $theme_info) {
    // Your custom filtering logic here
    return $install_actions;
}

Source Code Context

wp-admin/includes/class-theme-installer-skin.php:190 - How this hook is used in WordPress core
<?php
 185  		 * @param string[] $install_actions Array of theme action links.
 186  		 * @param object   $api             Object containing WordPress.org API theme data.
 187  		 * @param string   $stylesheet      Theme directory name.
 188  		 * @param WP_Theme $theme_info      Theme object.
 189  		 */
 190  		$install_actions = apply_filters( 'install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info );
 191  		if ( ! empty( $install_actions ) ) {
 192  			$this->feedback( implode( ' | ', (array) $install_actions ) );
 193  		}
 194  	}
 195  

PHP Documentation

<?php
/**
		 * Filters the list of action links available following a single theme installation.
		 *
		 * @since 2.8.0
		 *
		 * @param string[] $install_actions Array of theme action links.
		 * @param object   $api             Object containing WordPress.org API theme data.
		 * @param string   $stylesheet      Theme directory name.
		 * @param WP_Theme $theme_info      Theme object.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 4
  • File: wp-admin/includes/class-theme-installer-skin.php
Related Hooks

Related hooks will be displayed here in future updates.