-
Notifications
You must be signed in to change notification settings - Fork 93
activitypub_blurhash_encode_failed
github-actions[bot] edited this page Jun 10, 2026
·
2 revisions
Fires when the cron-deferred encoder fails to produce a hash for an attachment. Monitoring integrations can hook this to count blurhash-encode failures over time.
/**
* Fires when the cron-deferred encoder fails to produce a
* hash for an attachment. Monitoring integrations can hook
* this to count blurhash-encode failures over time.
*
* @param int $attachment_id
*/
function my_activitypub_blurhash_encode_failed_callback( int $attachment_id ) {
// Your code here.
}
add_action( 'activitypub_blurhash_encode_failed', 'my_activitypub_blurhash_encode_failed_callback' );-
int$attachment_idThe attachment ID that failed to encode.
\do_action( 'activitypub_blurhash_encode_failed', $attachment_id )Follow @activitypub.blog@activitypub.blog for updates and news.