• mar1anne

    (@mar1anne)


    I’m using the RestAPI in the following format:

    https://abc.com/wp-json/wp/v2/users/me?context=edit

    this exposes the default capabilities, as expected, but it also incudes extra_capabilities, which I have not been able to find any documentation on.

    What are extra capabilities, what is their intended use, and how are they set?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s just a property under which additional, non-default capabilities are saved. Typically added via theme or plugin by using WP_User::add_cap() and WP_User::add_cap(). Such capabilities can be used to further customize who can do what with certain kinds of data, such as custom post types.

Viewing 1 replies (of 1 total)
  • The topic ‘What is the extra_capabilities field ?’ is closed to new replies.