Skip to content

v0.3.0

Choose a tag to compare

@gziolo gziolo released this 20 Oct 07:21
a6805fb

What's Changed

Breaking Changes

  • It's now mandatory to provide a registered category with wp_register_ability_category() when registering an ability with wp_register_ability().
  • It's also mandatory to provide a category name when registering the ability on the client with wp.abilities.registerAbility.
  • By default, all abilities are no longer exposed through the REST API. To opt into the old behavior, provide meta containing [ 'show_in_rest' => true ].
  • Meta annotations were introduced to control which HTTP method, GET vs POST, is used to execute an ability through the REST API. In particular, if you want to use GET, then make sure to include in meta the following override [ 'annotations' => [ 'readonly' => true ] ].

New Contributors

Full Changelog: v0.2.0...v0.3.0-rc.2