-
Notifications
You must be signed in to change notification settings - Fork 86
activitypub_defer_signature_verification
github-actions[bot] edited this page Apr 21, 2026
·
12 revisions
Filter to defer signature verification.
Skip signature verification for debugging purposes or to reduce load for
certain Activity-Types, like "Delete". Callers that want to preserve
mandatory signing for endpoints passing $force_signature = true
(e.g. FEP-8fcf's /followers/sync) should inspect the third argument
and return false in that case.
verification for this endpoint.
/**
* Filter to defer signature verification.
*
* Skip signature verification for debugging purposes or to reduce load for
* certain Activity-Types, like "Delete". Callers that want to preserve
* mandatory signing for endpoints passing `$force_signature = true`
* (e.g. FEP-8fcf's `/followers/sync`) should inspect the third argument
* and return `false` in that case.
*
* verification for this endpoint.
*
* @param bool $defer
* @param WP_REST_Request $request
* @param bool $force_signature
* @return bool Whether to defer signature verification.
*/
function my_activitypub_defer_signature_verification_callback( bool $defer, WP_REST_Request $request, bool $force_signature ) {
// Your code here.
return $defer;
}
add_filter( 'activitypub_defer_signature_verification', 'my_activitypub_defer_signature_verification_callback', 10, 3 );-
bool$deferWhether to defer signature verification. -
WP_REST_Request$requestThe request used to generate the response. -
bool$force_signatureWhether the caller has forced signature
bool Whether to defer signature verification.
\apply_filters( 'activitypub_defer_signature_verification', false, $request, $force_signature )Follow @activitypub.blog@activitypub.blog for updates and news.