Skip to content

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.

Auto-generated Example

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

Parameters

  • bool $defer Whether to defer signature verification.
  • WP_REST_Request $request The request used to generate the response.
  • bool $force_signature Whether the caller has forced signature

Returns

bool Whether to defer signature verification.

Files

\apply_filters( 'activitypub_defer_signature_verification', false, $request, $force_signature )

← All Hooks

Users

Developers

Clone this wiki locally