-
Notifications
You must be signed in to change notification settings - Fork 83
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.
/**
* 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 );-
string[]$actions An array of row action links. Defaults include 'Unfollow'. Other variable names:$actions -
array$itemThe current following item.
apply_filters( 'activitypub_following_row_actions', $actions, $item )Follow @[email protected] for updates and news.