theme_install_actions

过滤钩子
apply_filters( 'theme_install_actions', $actions, $theme )
参数
  • (string[]) $actions An array of theme action links. Defaults are links to Install Now, Preview, and Details.
    Required:
  • (stdClass) $theme An object that contains theme data returned by the WordPress.org API.
    Required:
定义位置
相关勾子
theme_action_linksplugin_install_action_linksmedia_row_actionstheme_templatestheme_file_path
相关方法
remove_all_actionswp_get_installed_translationsremove_allowed_optionsthe_post_navigationwp_install_defaultsthe_post_thumbnail_caption
引入
3.4.0
弃用
-

theme_install_actions是一个WordPress过滤钩子,它允许开发者在WordPress管理区的主题安装页面的可用操作列表中添加额外的操作。

过滤安装主题列表表中的主题的安装动作链接。

$actions = apply_filters( 'theme_install_actions', $actions, $theme );

常见问题

FAQs
查看更多 >