Skip to content

activitypub_following_row_actions

github-actions[bot] edited this page Sep 30, 2025 · 1 revision

Filters the array of row action links on the Following list table.

This filter allows you to modify the row actions for each following item in the Following list table.

Auto-generated Example

/**
 * Filters the array of row action links on the Following list table.
 * 
 * This filter allows you to modify the row actions for each following item in the Following list table.
 *
 * @param mixed $string[] 
 * @param array $item 
 * @return mixed The filtered value.
 */
function my_activitypub_following_row_actions_callback( string[], array $item ) {
    // Your code here.
    return string[];
}
add_filter( 'activitypub_following_row_actions', 'my_activitypub_following_row_actions_callback', 10, 2 );

Parameters

  • string[] $actions An array of row action links. Defaults include 'Unfollow'. Other variable names: $actions
  • array $item The current following item.

Files

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

← All Hooks

Users

Developers

Clone this wiki locally