You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actions[bot] edited this page Jul 17, 2026
·
1 revision
Filters the maximum number of actors returned by the autocomplete endpoint.
Auto-generated Example
/** * Filters the maximum number of actors returned by the autocomplete endpoint. * * @param int $number * @param WP_REST_Request $request * @return int The filtered value. */functionmy_activitypub_actor_autocomplete_number_callback( int$number, WP_REST_Request$request ) {
// Your code here.return$number;
}
add_filter( 'activitypub_actor_autocomplete_number', 'my_activitypub_actor_autocomplete_number_callback', 10, 2 );
Parameters
int$number The maximum number of actors. Default 10.