comment_id_fields

過濾鉤子
apply_filters( 'comment_id_fields', $result, $post_id, $reply_to_id )
引數
  • (string) $result The HTML-formatted hidden ID field comment elements.
    Required:
  • (int) $post_id The post ID.
    Required:
  • (int) $reply_to_id The ID of the comment being replied to.
    Required:
定義位置
相關勾子
comment_form_fieldscomments_link_feedcomment_form_default_fieldscomment_form_after_fieldscomment_form_submit_field
相關方法
comment_id_fieldsget_comment_id_fieldscomments_link_feedcomment_idis_comment_feedcomment_time
引入
3.0.0
棄用
-

comment_id_fields: 這個過濾鉤子允許開發者在評論表單中新增額外的隱藏欄位。

過濾返回的評論ID欄位。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'comment_id_fields', $result, $post_id, $reply_to_id );
return apply_filters( 'comment_id_fields', $result, $post_id, $reply_to_id );
return apply_filters( 'comment_id_fields', $result, $post_id, $reply_to_id );

常見問題

FAQs
檢視更多 >