deleted_theme

动作钩子
do_action( 'deleted_theme', $stylesheet, $deleted )
参数
  • (string) $stylesheet Stylesheet of the theme to delete.
    Required:
  • (bool) $deleted Whether the theme deletion was successful.
    Required:
定义位置
相关勾子
delete_themedelete_termdeleted_postmetadeleted_userdeleted_comment
相关方法
delete_themedelete_term_metadelete_site_metadelete_metawp_delete_termget_theme
引入
5.8.0
弃用
-

deleted_theme: 当一个WordPress主题被删除时,这个动作被触发。它通常用于在主题被删除时执行额外的操作。

在尝试删除主题后立即发生触发。

do_action( 'deleted_theme', $stylesheet, $deleted );

常见问题

FAQs
查看更多 >