-
Notifications
You must be signed in to change notification settings - Fork 83
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 ).
/**
* 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' );-
string|null$valueThe column value. Default null. -
string$column_nameThe name of the current column. -
array$itemThe current following item data. -
int$user_idThe user id of the local actor.
\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 )Follow @activitypub.blog@activitypub.blog for updates and news.