delete_theme

动作钩子


do_action( 'delete_theme', $stylesheet )
参数
  • (string)
    $stylesheet
    Stylesheet of the theme to delete.
    Required:
定义位置
  • wp-admin/includes/theme.php
    , line 82
引入
5.8.0
弃用

Fires immediately before a theme deletion attempt.

do_action( 'delete_theme', $stylesheet );