-
-
Notifications
You must be signed in to change notification settings - Fork 31
edit_webmention
github-actions[bot] edited this page Jun 23, 2026
·
3 revisions
Fires after a webmention is updated in the database.
The hook is needed as the comment_post hook uses filtered data
/**
* Fires after a webmention is updated in the database.
*
* The hook is needed as the comment_post hook uses filtered data.
*
* @param int $comment_ID
* @param array $data
*/
function my_edit_webmention_callback( int $comment_ID, array $data ) {
// Your code here.
}
add_action( 'edit_webmention', 'my_edit_webmention_callback', 10, 2 );-
int$comment_IDThe comment ID. -
array$dataComment data.
do_action( 'edit_webmention', $commentdata['comment_ID'], $commentdata )