get_avatar_comment_types

過濾鉤子
apply_filters( 'get_avatar_comment_types', array( 'comment' )
引數
  • (array) $types An array of content types. Default only contains 'comment'.
    Required:
定義位置
相關勾子
get_comment_typeget_comment_dateget_comment_textget_comment_timeget_default_comment_status
相關方法
is_avatar_comment_typeget_comment_typeget_available_post_mime_typesget_comment_dateget_comment_textget_comment_time
引入
3.0.0
棄用
-

get_avatar_comment_types: 這個函式返回一個可以獲取頭像的評論型別的陣列。預設情況下,該陣列包括”評論”和”回貼”。

過濾用於檢索頭像的允許評論型別的列表。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment' ) );
$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment' ) );
$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment' ) );

常見問題

FAQs
檢視更多 >