Skip to content

activitypub_skip_inbox_storage

github-actions[bot] edited this page Oct 24, 2025 · 1 revision

Filter to skip inbox storage.

Skip inbox storage for debugging purposes or to reduce load for certain Activity-Types, like "Delete".

Auto-generated Example

/**
 * Filter to skip inbox storage.
 * 
 * Skip inbox storage for debugging purposes or to reduce load for
 * certain Activity-Types, like "Delete".
 *
 * @param bool  $skip 
 * @param array $data 
 * @return bool Whether to skip inbox storage.
 */
function my_activitypub_skip_inbox_storage_callback( bool $skip, array $data ) {
    // Your code here.
    return $skip;
}
add_filter( 'activitypub_skip_inbox_storage', 'my_activitypub_skip_inbox_storage_callback', 10, 2 );

Parameters

  • bool $skip Whether to skip inbox storage.
  • array $data The activity data array.

Returns

bool Whether to skip inbox storage.

Files

\apply_filters( 'activitypub_skip_inbox_storage', false, $data )

← All Hooks

Users

Developers

Clone this wiki locally