Title: install_theme_overwrite_actions
Published: August 11, 2020
Last modified: May 20, 2026

---

# apply_filters( ‘install_theme_overwrite_actions’, string[] $install_actions, object $api, array $new_theme_data )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#wp--skip-link--target)

Filters the list of action links available following a single theme installation
failure when overwriting is allowed.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#parameters)󠁿

 `$install_actions`string[]

Array of theme action links.

`$api`object

Object containing WordPress.org API theme data.

`$new_theme_data`array

Array with uploaded theme data.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#source)󠁿

    ```php
    $install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-theme-installer-skin.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-theme-installer-skin.php#L388)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-theme-installer-skin.php#L388-L388)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#related)󠁿

| Used by | Description | 
| [Theme_Installer_Skin::do_overwrite()](https://developer.wordpress.org/reference/classes/theme_installer_skin/do_overwrite/)`wp-admin/includes/class-theme-installer-skin.php` |

Checks if the theme can be overwritten and outputs the HTML for overwriting a theme on upload.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/install_theme_overwrite_actions/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Finstall_theme_overwrite_actions%2F)
before being able to contribute a note or feedback.