-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_rest_following
github-actions[bot] edited this page Nov 14, 2025
·
1 revision
DEPRECATED This hook was deprecated in version 7.1.0. Please migrate your Followings to the new internal Following structure.
Filter the list of following urls
/**
* Filter the list of following urls.
*
* @param array $items
* @param Activitypub\Model\User $user
* @param string $please_migrate_your_followings_to_the_new_internal_following_structure_
* @return array The filtered value.
*/
function my_activitypub_rest_following_callback( array $items, Activitypub\Model\User $user, string $please_migrate_your_followings_to_the_new_internal_following_structure_ ) {
// Your code here.
return $items;
}
add_filter( 'activitypub_rest_following', 'my_activitypub_rest_following_callback', 10, 3 );-
array$itemsThe array of following urls. -
Activitypub\Model\User$userThe user object. -
string$please_migrate_your_followings_to_the_new_internal_following_structure_
\apply_filters_deprecated( 'activitypub_rest_following', array( array(), $user ), '7.1.0', 'Please migrate your Followings to the new internal Following structure.' )Follow @[email protected] for updates and news.