Skip to content

activitypub_followers_row_actions

github-actions[bot] edited this page Nov 14, 2025 · 3 revisions

Filters the array of row action links for each follower in the Followers list table.

This filter allows you to modify the available row actions (such as Delete, Block, or Follow back) for each follower item displayed in the table.

'Delete', 'Block', and optionally 'Follow back'.

Auto-generated Example

/**
 * Filters the array of row action links for each follower in the Followers list table.
 * 
 * This filter allows you to modify the available row actions (such as Delete, Block, or Follow back)
 * for each follower item displayed in the table.
 * 
 * 
 * 'Delete', 'Block', and optionally 'Follow back'.
 *
 * @param Activitypub\string[] $actions 
 * @param array                $item 
 * @return Activitypub\string[] The filtered value.
 */
function my_activitypub_followers_row_actions_callback( Activitypub\string[] $actions, array $item ) {
    // Your code here.
    return $actions;
}
add_filter( 'activitypub_followers_row_actions', 'my_activitypub_followers_row_actions_callback', 10, 2 );

Parameters

  • Activitypub\string[] $actions An array of row action links. Defaults are
  • array $item The current follower item.

Files

apply_filters( 'activitypub_followers_row_actions', $actions, $item )

← All Hooks

Users

Developers

Clone this wiki locally