-
-
Notifications
You must be signed in to change notification settings - Fork 31
sideload_webmention_avatar
github-actions[bot] edited this page Jul 30, 2026
·
2 revisions
Fires on a successful creation of a sideloaded avatar in the store
/**
* Fires on a successful creation of a sideloaded avatar in the store.
*
* @param WP_Comment $comment
* @param string $avatar_url
*/
function my_sideload_webmention_avatar_callback( WP_Comment $comment, string $avatar_url ) {
// Your code here.
}
add_action( 'sideload_webmention_avatar', 'my_sideload_webmention_avatar_callback', 10, 2 );-
WP_Comment$comment -
string$avatar_urlThe URL of the sideloaded avatar
do_action( 'sideload_webmention_avatar', $comment, $avatar_url )