admin_comment_types_dropdown

過濾鉤子
引數
  • (string[]) $comment_types Array of comment type labels keyed by their name.
    Required:
    Default:
定義位置
相關勾子
comments_openatom_comments_nsget_comment_typedisable_formats_dropdownget_avatar_comment_types
相關方法
comment_typeparent_dropdowncomments_openwp_admin_bar_comments_menuget_comment_pages_countget_comment_type
引入
2.7.0
棄用
-

admin_comment_types_dropdown是一個過濾器鉤子,它允許開發人員修改WordPress管理介面中的評論型別下拉。這可以用來新增自定義的評論型別到下拉選單或修改現有的評論型別。

過濾顯示在評論列表表的下拉選單中的評論型別。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$comment_types = apply_filters(
$comment_types = apply_filters(
$comment_types = apply_filters(

常見問題

FAQs
檢視更多 >