Lines: 1 to 21 of 21
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /* class WC_API_Coupons */ /* function WC_API_Coupons::register_routes() – Register the routes for this class */ /* function WC_API_Coupons::get_coupons() – Get all coupons */ /* function WC_API_Coupons::get_coupon() – Get the coupon for the given ID */ /* function WC_API_Coupons::get_coupons_count() – Get the total number of coupons */ /* function WC_API_Coupons::get_coupon_by_code() – Get the coupon for the given code */ /* function WC_API_Coupons::create_coupon() – Create a coupon */ /* function WC_API_Coupons::edit_coupon() – Edit a coupon */ /* function WC_API_Coupons::delete_coupon() – Delete a coupon */ /* function WC_API_Coupons::get_coupon_expiry_date() – expiry_date format */ /* function WC_API_Coupons::query_coupons() – Helper method to get coupon post objects */ /* function WC_API_Coupons::bulk() – Bulk update or insert coupons Accepts an array with coupons in the formats supported by WC_API_Coupons->create_coupon() and WC_API_Coupons->edit_coupon() */