comment_atom_entry

動作鉤子
do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID )
引數
  • (int) $comment_id ID of the current comment.
    Required:
  • (int) $comment_post_id ID of the post the current comment is connected to.
    Required:
定義位置
相關勾子
comments_atom_headcomment_authorcomment_textcomment_form_aftercomments_open
相關方法
comment_authorcomment_timecomment_textcomment_datecomment_text_rsscomments_open
引入
2.2.0
棄用
-

comment_atom_entry – 這個過濾器鉤子用來為評論的Atom feed條目新增額外的內容。評論的ID、文章的ID和Atom feed的物件被作為引數傳遞給過濾函式。

在每個Atom評論feed專案結束時啟動。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID );
do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID );
do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID );

常見問題

FAQs
檢視更多 >