'description' =>
__( 'Any extra capabilities assigned to the user.'
),
'type' => 'object',
'context' => array
( 'edit'
),
'readonly' => true,
),
),
);
if ( get_option( 'show_avatars'
) ) { $avatar_properties = array
();
$avatar_sizes =
rest_get_avatar_sizes();
foreach ( $avatar_sizes as $size ) { $avatar_properties[ $size ] = array
( /* translators: %d: Avatar image size in pixels. */
'description' =>
sprintf( __( 'Avatar URL with image size of %d pixels.'
),
$size ),
'type' => 'string',
'format' => 'uri',
'context' => array
( 'embed', 'view', 'edit'
),
);
}