Skip to content

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.

Auto-generated Example

/**
 * 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' );

Parameters

  • int $attachment_id The attachment ID that failed to encode.

Files

\do_action( 'activitypub_blurhash_encode_failed', $attachment_id )

← All Hooks

Users

Developers

Clone this wiki locally