Skip to content

activitypub_activity_object_array

github-actions[bot] edited this page Aug 7, 2025 · 5 revisions

Filter the array of the ActivityPub object.

Auto-generated Example

add_filter(
   'activitypub_activity_object_array',
    function(
        array $array,
        string $class,
        string $id,
        Activitypub\Generic_Object $object
    ) {
        // Your code here.
        return $array;
    },
    10,
    4
);

Parameters

  • array $array The array of the ActivityPub object.
  • string $class The class of the ActivityPub object.
  • string $id The ID of the ActivityPub object.
  • Activitypub\Generic_Object $object The ActivityPub object.

Returns

array The filtered array of the ActivityPub object.

Files

\apply_filters( 'activitypub_activity_object_array', $array, $class, $this->id, $this )

← All Hooks

Users

Developers

Clone this wiki locally