install_themes_{$tab}

動作鉤子
do_action( "install_themes_{$tab}", $paged )

install_themes_{$tab}: 這是一個鉤子,當主題安裝標籤(由$tab指定)在WordPress管理面板上顯示時,這個鉤子就會啟動。這個鉤子可以用來執行任何動作或新增額外的內容到主題安裝標籤。

在”安裝主題”頁面的每個標籤的頂部觸發。

鉤子名稱的動態部分, $tab,指的是當前的主題安裝標籤。

可能的鉤子名稱包括:

  • install_themes_block-themes
  • install_themes_dashboard
  • install_themes_featured
  • install_themes_new
  • install_themes_search
  • install_themes_updated
  • install_themes_upload
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( "install_themes_{$tab}", $paged );
do_action( "install_themes_{$tab}", $paged );
do_action( "install_themes_{$tab}", $paged );

常見問題

FAQs
檢視更多 >