install_theme_overwrite_actions

过滤钩子


apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data )
参数
  • (string[])
    $install_actions
    Array of theme action links.
    Required:
  • (object)
    $api
    Object containing WordPress.org API theme data.
    Required:
  • (array)
    $new_theme_data
    Array with uploaded theme data.
    Required:
定义位置
  • wp-admin/includes/class-theme-installer-skin.php
    , line 372
引入
5.5.0
弃用

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

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