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管理區的主題安裝頁面的可用操作列表中新增額外的操作。

過濾安裝主題列表表中的主題的安裝動作連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$actions = apply_filters( 'theme_install_actions', $actions, $theme );
$actions = apply_filters( 'theme_install_actions', $actions, $theme );
$actions = apply_filters( 'theme_install_actions', $actions, $theme );

常見問題

FAQs
檢視更多 >