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 Oct 29, 2026
·
3 revisions
Filters the maximum number of image attachments displayed in a Fediverse comment.
Auto-generated Example
/** * Filters the maximum number of image attachments displayed in a Fediverse comment. * * @param int $limit * @param array $activity_object * @return int The filtered value. */functionmy_activitypub_comment_image_limit_callback( int$limit, array$activity_object ) {
// Your code here.return$limit;
}
add_filter( 'activitypub_comment_image_limit', 'my_activitypub_comment_image_limit_callback', 10, 2 );
Parameters
int$limit Maximum number of images. Default 3. Zero disables image attachments.