WC_REST_Coupons_V2_Controller
REST API Coupons controller class.
Description Description
Source Source
File: includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php
Methods Methods
- filter_writable_props — Only return writable props from schema.
- get_collection_params — Get the query params for collections of attachments.
- get_formatted_item_data — Get formatted item data.
- get_item_schema — Get the Coupon's schema, conforming to JSON Schema.
- get_object — Get object.
- prepare_object_for_database — Prepare a single coupon for create or update.
- prepare_object_for_response — Prepare a single coupon output for response.
- prepare_objects_query — Prepare objects query.
- register_routes — Register the routes for coupons.