The WP User fields.

UserDataType

interface UserDataType {
    acf: object[];
    avatar_urls: {
        24: string;
        48: string;
        96: string;
    };
    description: string;
    id: number;
    link: string;
    meta: object[];
    name: string;
    slug: string;
    url: string;
}

Properties

acf: object[]

The exposed ACF fields. Expose fields to use custom user information in your JS app.

avatar_urls: {
    24: string;
    48: string;
    96: string;
}

The user avatar URLs.

Type declaration

  • 24: string

    The 24px avatar URL.

  • 48: string

    The 48px avatar URL.

  • 96: string

    The 96px avatar URL.

description: string

The user description.

id: number

The user ID.

link: string

The user URL.

meta: object[]

The user meta.

name: string

The username.

slug: string

The user slug.

url: string

The user url.

Generated using TypeDoc