-
Notifications
You must be signed in to change notification settings - Fork 91
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.
/**
* 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 );-
string$normalizedThe normalized URL that failed to bury. -
WP_Error|int|null$post_idThewp_insert_post()return value.
\do_action( 'activitypub_tombstone_bury_failed', $normalized, $post_id )Follow @activitypub.blog@activitypub.blog for updates and news.