Skip to content

activitypub_tombstone_bury_failed

github-actions[bot] edited this page May 18, 2026 · 1 revision

Fires when bury() fails to write a tombstone row.

The URL is silently not tombstoned in this case — the request path will respond as it would for any other non-existent post. Useful as a monitoring hook.

Auto-generated Example

/**
 * Fires when `bury()` fails to write a tombstone row.
 * 
 * The URL is silently not tombstoned in this case — the
 * request path will respond as it would for any other
 * non-existent post. Useful as a monitoring hook.
 *
 * @param string       $normalized 
 * @param WP_Error|int $post_id 
 */
function my_activitypub_tombstone_bury_failed_callback( string $normalized, WP_Error|int $post_id = null ) {
    // Your code here.
}
add_action( 'activitypub_tombstone_bury_failed', 'my_activitypub_tombstone_bury_failed_callback', 10, 2 );

Parameters

  • string $normalized The normalized URL that failed to bury.
  • WP_Error|int|null $post_id The wp_insert_post() return value.

Files

\do_action( 'activitypub_tombstone_bury_failed', $normalized, $post_id )

← All Hooks

Users

Developers

Clone this wiki locally