Skip to content

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

Auto-generated Example

/**
 * 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 );

Parameters

  • array $items The array of following urls.
  • Activitypub\Model\User $user The user object.
  • string $please_migrate_your_followings_to_the_new_internal_following_structure_

Files

\apply_filters_deprecated( 'activitypub_rest_following', array( array(), $user ), '7.1.0', 'Please migrate your Followings to the new internal Following structure.' )

← All Hooks

Users

Developers

Clone this wiki locally