Skip to content

activitypub_{$key}

github-actions[bot] edited this page Jan 13, 2026 · 1 revision

Filters the columns displayed in the ActivityPub Following list table.

Allows plugins to add, remove, or reorder columns shown in the Following list table on the ActivityPub admin screen.

Auto-generated Example

/**
 * Filters the columns displayed in the ActivityPub Following list table.
 * 
 * Allows plugins to add, remove, or reorder columns shown in the
 * Following list table on the ActivityPub admin screen.
 *
 * @param Activitypub\string[] $columns 
 * @param int                  $user_id 
 * @return Activitypub\string[] The filtered value.
 */
function my_activitypub_{$key}_callback( Activitypub\string[] $columns = null, int $user_id = null ) {
    // Your code here.
    return null;
}
add_filter( 'activitypub_*', 'my_activitypub_{$key}_callback' );

Parameters

  • Activitypub\string[] $columns Array of columns.
  • int $user_id The user id of the local actor.

Files

\apply_filters( 'activitypub_' . $key . '_columns', $columns, $this->user_id )

← All Hooks

Users

Developers

Clone this wiki locally