Skip to content

activitypub_{$this}

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

Filters the sortable columns in the ActivityPub Following list table.

Allows plugins to register additional sortable columns or modify the default sortable behavior.

column_id => array( orderby, is_sortable_default ).

Auto-generated Example

/**
 * Filters the sortable columns in the ActivityPub Following list table.
 * 
 * Allows plugins to register additional sortable columns or modify the default sortable behavior.
 * 
 * 
 * `column_id => array( orderby, is_sortable_default )`.
 *
 * @param string $value 
 * @param string $column_name 
 * @param array  $item 
 * @param int    $user_id 
 * @return string The filtered value.
 */
function my_activitypub_{$this}_callback( string $value = null, string $column_name = null, array $item = null, int $user_id = null ) {
    // Your code here.
    return null;
}
add_filter( 'activitypub_*', 'my_activitypub_{$this}_callback' );

Parameters

  • string|null $value The column value. Default null.
  • string $column_name The name of the current column.
  • array $item The current following item data.
  • int $user_id The user id of the local actor.

Files

\apply_filters(
			'activitypub_' . $this->actor_list_table_key() . '_column_value',
			null,
			$column_name,
			$item,
			$this->user_id
		)
\apply_filters( 'activitypub_' . $this->actor_list_table_key() . '_sortable_columns', $columns, $this->user_id )

← All Hooks

Users

Developers

Clone this wiki locally