Home / Files / includes/api/legacy/v2/class-wc-api-coupons.php


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() */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: includes/api/legacy/v2/class-wc-api-coupons.php
      Plugin ref: WooCommerce
      Version: 3.6.0-dev
      Deprecated?: No
      API Letters: A,C,I,L,V

      Published: 14th March 2017 | Last updated: 17th November 2017

      Information

      File name: includes/api/legacy/v2/class-wc-api-coupons.php
      Plugin ref: WooCommerce
      Version: 3.6.0-dev
      Deprecated?: No
      API Letters: A,C,I,L,V

      includes/api/legacy/v2
      • Plugins
      • Themes
      • Shortcodes
      • APIs
      • Files
      • Hooks
      • Classes
      • Sites
      • Sitemap
      • Blog
      WooCommerce a2z WooCommerce a2z
      WooCommerce

      Site:  woocommerce.wp-a2z.org
      © Copyright WooCommerce a2z 2014-2019. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins