主題"頁面中顯示特定主題的資訊行後被觸發。引數$stylesheet是主題樣式表檔案的名稱。開發" />

after_theme_row_{$stylesheet}

動作鉤子
do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status )
引數
  • (string) $stylesheet Directory name of the theme.
    Required:
  • (WP_Theme) $theme Current WP_Theme object.
    Required:
  • (string) $status Status of the theme.
    Required:
定義位置
相關勾子
after_theme_rowtheme_action_links_stylesheettheme_row_metaupdate_themes_hostnamewp_sitemaps_stylesheet_url
相關方法
get_stylesheetget_editor_stylesheets_preview_theme_stylesheet_filterget_theme_rootsget_locale_stylesheet_uriget_stylesheet_uri
引入
3.5.0
棄用
-

after_theme_row_{$stylesheet}: 這是一個鉤子,在WordPress”外觀>主題”頁面中顯示特定主題的資訊行後被觸發。引數$stylesheet是主題樣式表檔案的名稱。開發人員可以使用這個鉤子來新增額外的資訊或資料到主題行。

在多站點主題列表表中的每一行之後觸發。

鉤子名稱的動態部分,$stylesheet,指的是主題的目錄名稱,最常與主題的模板名稱同義。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );
do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );
do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );

常見問題

FAQs
檢視更多 >