URL METHOD PARAMS
Parameter Type Desciption
/wp-json/learnpress/v1/users/ GET exclude array Ensure result set excludes specific IDs.
include array Limit result set to specific IDs.
offset integer Offset the result set by a specific number of items.
order string Order sort attribute ascending or descending.
orderby string Sort collection by object attribute.
slug array Limit result set to users with one or more specific slugs.
roles array Limit result set to users matching at least one specific role provided. Accepts csv list or single role.
who string Limit result set to users who are considered authors.

Response

"[
  {
    ""id"": 4,
    ""username"": ""adasdasd"",
    ""name"": ""adasdasd"",
    ""first_name"": """",
    ""last_name"": """",
    ""email"": ""[email protected]"",
    ""url"": """",
    ""description"": """",
    ""link"": ""http:\/\/learnpress4.local\/author\/adasdasd\/"",
    ""nickname"": ""adasdasd"",
    ""slug"": ""adasdasd"",
    ""tabs"": {
      ""overview"": {
        ""title"": ""Overview"",
        ""slug"": ""overview"",
        ""priority"": 10,
        ""icon"": ""<i class=\""fas fa-chalkboard-teacher\""><\/i>"",
        ""content"": {
          ""statistic"": {
            ""enrolled_courses"": 1,
            ""active_courses"": 0,
            ""completed_courses"": 0,
            ""total_courses"": 0,
            ""total_users"": 0
          },
          ""featured"": [],
          ""latest"": [
            529,
            273,
            238,
            205,
            200,
            196,
            175
          ]
        }
      },
      ""courses"": {
        ""title"": ""Courses"",
        ""slug"": ""courses"",
        ""priority"": 15,
        ""icon"": ""<i class=\""fas fa-book-open\""><\/i>"",
        ""content"": {
          ""enrolled"": {
            ""all"": [
              {
                ""id"": 200,
                ""graduation"": """",
                ""status"": """",
                ""start_time"": ""2021-06-11T02:51:15"",
                ""end_time"": false,
                ""expiration"": ""2021-08-20T02:51:15"",
                ""results"": []
              }
            ],
            ""finished"": [],
            ""passed"": [],
            ""failed"": []
          },
          ""created"": {
            ""all"": [
              175,
              196
            ],
            ""publish"": [
              175,
              196
            ],
            ""pending"": []
          }
        },
        ""section"": {
          ""enrolled"": {
            ""title"": ""Enrolled"",
            ""slug"": ""enrolled"",
            ""priority"": 10
          },
          ""created"": {
            ""title"": ""Created"",
            ""slug"": ""created"",
            ""priority"": 20
          }
        }
      },
      ""quizzes"": {
        ""title"": ""Quizzes"",
        ""slug"": ""quizzes"",
        ""priority"": 20,
        ""icon"": ""<i class=\""fas fa-puzzle-piece\""><\/i>"",
        ""content"": """"
      },
      ""orders"": {
        ""title"": ""Orders"",
        ""slug"": ""orders"",
        ""priority"": 25,
        ""icon"": ""<i class=\""fas fa-shopping-cart\""><\/i>"",
        ""content"": {
          ""542"": {
            ""order_key"": ""#0000000542"",
            ""total"": ""0"",
            ""currency"": ""USD"",
            ""status"": ""completed"",
            ""date"": ""2021-06-09T00:00:00""
          }
        }
      },
      ""order-details"": {
        ""title"": ""Order details"",
        ""slug"": ""order-details"",
        ""priority"": 30,
        ""icon"": """",
        ""content"": """"
      },
      ""settings"": {
        ""title"": ""Settings"",
        ""slug"": ""settings"",
        ""priority"": 35,
        ""icon"": ""<i class=\""fas fa-cog\""><\/i>"",
        ""content"": """",
        ""section"": {
          ""basic-information"": {
            ""title"": ""General"",
            ""slug"": ""basic-information"",
            ""priority"": 10
          },
          ""avatar"": {
            ""title"": ""Avatar"",
            ""slug"": ""avatar"",
            ""priority"": 20
          },
          ""change-password"": {
            ""title"": ""Password"",
            ""slug"": ""change-password"",
            ""priority"": 30
          },
          ""privacy"": {
            ""title"": ""Privacy"",
            ""slug"": ""privacy"",
            ""priority"": 40
          }
        }
      },
      ""logout"": {
        ""title"": ""Logout"",
        ""slug"": ""lp-logout"",
        ""priority"": 40,
        ""icon"": ""<i class=\""fas fa-sign-out-alt\""><\/i>"",
        ""content"": """"
      }
    },
    ""custom_register"": {
      ""displayname"": {
        ""title"": ""Display name"",
        ""type"": ""text"",
        ""required"": ""no"",
        ""value"": """"
      },
      ""firstname"": {
        ""title"": ""First name"",
        ""type"": ""text"",
        ""required"": ""no"",
        ""value"": """"
      }
    },
    ""avatar_urls"": {
      ""24"": ""http:\/\/0.gravatar.com\/avatar\/38743940073e43b1475fa2093ce30286?s=24&d=mm&r=g"",
      ""48"": ""http:\/\/0.gravatar.com\/avatar\/38743940073e43b1475fa2093ce30286?s=48&d=mm&r=g"",
      ""96"": ""http:\/\/0.gravatar.com\/avatar\/38743940073e43b1475fa2093ce30286?s=96&d=mm&r=g""
    },
    ""meta"": [],
    ""_links"": {
      ""self"": [
        {
          ""href"": ""http:\/\/learnpress4.local\/wp-json\/learnpress\/v1\/users\/4""
        }
      ],
      ""collection"": [
        {
          ""href"": ""http:\/\/learnpress4.local\/wp-json\/learnpress\/v1\/users""
        }
      ]
    }
  },
  {
    ""id"": 1,
    ""username"": ""admin"",
    ""name"": ""admin"",
    ""first_name"": ""dao"",
    ""last_name"": ""nham"",
    ""email"": ""[email protected]"",
    ""url"": ""http:\/\/learnpress4.local"",
    ""description"": """",
    ""link"": ""http:\/\/learnpress4.local\/author\/admin\/"",
    ""nickname"": ""admin"",
    ""slug"": ""admin"",
    ""tabs"": {
      ""overview"": {
        ""title"": ""Overview"",
        ""slug"": ""overview"",
        ""priority"": 10,
        ""icon"": ""<i class=\""fas fa-chalkboard-teacher\""><\/i>"",
        ""content"": {
          ""statistic"": {
            ""enrolled_courses"": 1,
            ""active_courses"": 0,
            ""completed_courses"": 0,
            ""total_courses"": 7,
            ""total_users"": 1
          },
          ""featured"": [],
          ""latest"": [
            529,
            273,
            238,
            205,
            200,
            196,
            175
          ]
        }
      },
      ""courses"": {
        ""title"": ""Courses"",
        ""slug"": ""courses"",
        ""priority"": 15,
        ""icon"": ""<i class=\""fas fa-book-open\""><\/i>"",
        ""content"": {
          ""enrolled"": {
            ""all"": [
              {
                ""id"": 200,
                ""graduation"": """",
                ""status"": """",
                ""start_time"": ""2021-06-11T02:51:15"",
                ""end_time"": false,
                ""expiration"": ""2021-08-20T02:51:15"",
                ""results"": []
              }
            ],
            ""finished"": [],
            ""passed"": [],
            ""failed"": []
          },
          ""created"": {
            ""all"": [
              175,
              196
            ],
            ""publish"": [
              175,
              196
            ],
            ""pending"": []
          }
        },
        ""section"": {
          ""enrolled"": {
            ""title"": ""Enrolled"",
            ""slug"": ""enrolled"",
            ""priority"": 10
          },
          ""created"": {
            ""title"": ""Created"",
            ""slug"": ""created"",
            ""priority"": 20
          }
        }
      },
      ""quizzes"": {
        ""title"": ""Quizzes"",
        ""slug"": ""quizzes"",
        ""priority"": 20,
        ""icon"": ""<i class=\""fas fa-puzzle-piece\""><\/i>"",
        ""content"": """"
      },
      ""orders"": {
        ""title"": ""Orders"",
        ""slug"": ""orders"",
        ""priority"": 25,
        ""icon"": ""<i class=\""fas fa-shopping-cart\""><\/i>"",
        ""content"": {
          ""542"": {
            ""order_key"": ""#0000000542"",
            ""total"": ""0"",
            ""currency"": ""USD"",
            ""status"": ""completed"",
            ""date"": ""2021-06-09T00:00:00""
          }
        }
      },
      ""order-details"": {
        ""title"": ""Order details"",
        ""slug"": ""order-details"",
        ""priority"": 30,
        ""icon"": """",
        ""content"": """"
      },
      ""settings"": {
        ""title"": ""Settings"",
        ""slug"": ""settings"",
        ""priority"": 35,
        ""icon"": ""<i class=\""fas fa-cog\""><\/i>"",
        ""content"": """",
        ""section"": {
          ""basic-information"": {
            ""title"": ""General"",
            ""slug"": ""basic-information"",
            ""priority"": 10
          },
          ""avatar"": {
            ""title"": ""Avatar"",
            ""slug"": ""avatar"",
            ""priority"": 20
          },
          ""change-password"": {
            ""title"": ""Password"",
            ""slug"": ""change-password"",
            ""priority"": 30
          },
          ""privacy"": {
            ""title"": ""Privacy"",
            ""slug"": ""privacy"",
            ""priority"": 40
          }
        }
      },
      ""logout"": {
        ""title"": ""Logout"",
        ""slug"": ""lp-logout"",
        ""priority"": 40,
        ""icon"": ""<i class=\""fas fa-sign-out-alt\""><\/i>"",
        ""content"": """"
      }
    },
    ""custom_register"": {
      ""displayname"": {
        ""title"": ""Display name"",
        ""type"": ""text"",
        ""required"": ""no"",
        ""value"": """"
      },
      ""firstname"": {
        ""title"": ""First name"",
        ""type"": ""text"",
        ""required"": ""no"",
        ""value"": """"
      }
    },
    ""avatar_urls"": {
      ""24"": ""http:\/\/1.gravatar.com\/avatar\/1be2e83062b314c106b13993a14f2504?s=24&d=mm&r=g"",
      ""48"": ""http:\/\/1.gravatar.com\/avatar\/1be2e83062b314c106b13993a14f2504?s=48&d=mm&r=g"",
      ""96"": ""http:\/\/1.gravatar.com\/avatar\/1be2e83062b314c106b13993a14f2504?s=96&d=mm&r=g""
    },
    ""meta"": [],
    ""_links"": {
      ""self"": [
        {
          ""href"": ""http:\/\/learnpress4.local\/wp-json\/learnpress\/v1\/users\/1""
        }
      ],
      ""collection"": [
        {
          ""href"": ""http:\/\/learnpress4.local\/wp-json\/learnpress\/v1\/users""
        }
      ]
    }
  }
]"