Skip to content
github-actions[bot] edited this page Jan 3, 2026 · 1 revision

Fires when a webmention is created.

Mirrors comment_post and pingback_post.

Auto-generated Example

/**
 * Fires when a webmention is created.
 * 
 * Mirrors comment_post and pingback_post.
 *
 * @param int   $comment_ID 
 * @param array $commentdata 
 */
function my_webmention_post_callback( int $comment_ID, array $commentdata ) {
    // Your code here.
}
add_action( 'webmention_post', 'my_webmention_post_callback', 10, 2 );

Parameters

  • int $comment_ID Comment ID.
  • array $commentdata Comment Array.

Files

do_action( 'webmention_post', $commentdata['comment_ID'], $commentdata )

← All Hooks

Clone this wiki locally