NavigationFavorites
REST API Favorites controller class.
Description Description
Source Source
File: packages/woocommerce-admin/src/API/NavigationFavorites.php
Methods Methods
- add_item — Add a favorite.
- add_item_by_current_user — Add a favorite for current user.
- add_item_permissions_check — Check whether a given request has permission to create favorites.
- current_user_permissions_check — Always allow for operations that only impact current user
- delete_item — Delete a favorite.
- delete_item_by_current_user — Delete a favorite for current user.
- delete_item_permissions_check — Check whether a given request has permission to delete notes.
- get_items — Get all favorites.
- get_items_by_current_user — Get all favorites of current user.
- prepare_error — Accept an instance of WP_Error and add the appropriate data for REST transit.
- register_routes — Register the routes