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 7, 2026
·
10 revisions
Filters the extra fields for an ActivityPub actor.
This filter allows developers to modify or add custom fields to an actor's
profile.
Auto-generated Example
/** * Filters the extra fields for an ActivityPub actor. * * This filter allows developers to modify or add custom fields to an actor's * profile. * * @param WP_Post[] $fields * @param int $user_id * @return WP_Post[] The filtered value. */functionmy_activitypub_get_actor_extra_fields_callback( WP_Post[] $fields, int$user_id ) {
// Your code here.return$fields;
}
add_filter( 'activitypub_get_actor_extra_fields', 'my_activitypub_get_actor_extra_fields_callback', 10, 2 );
Parameters
WP_Post[]$fields Array of WP_Post objects representing the extra fields.
int$user_id The ID of the user whose fields are being retrieved.