public/wordpress/wp-content/plugins/wp-courseware/includes/controllers/coupons.php
/**
	 * Register Ajax Coupon Endpoints.
	 *
	 * @since 4.5.0
	 *
	 * @return array $ajax_events The array of ajax events.
	 */
Register Ajax Coupon Endpoints.

@return array $ajax_events The array of ajax events.
Register Ajax Coupon Endpoints . @return array $ajax_events The array of ajax events .
public function register_coupon_ajax_events( $ajax_events ) {
		$coupon_ajax_events = array(
			'apply-coupon'  => array( $this, 'ajax_apply_coupon' ),
			'remove-coupon' => array( $this, 'ajax_remove_coupon' ),
		);
		return array_merge( $ajax_events, $coupon_ajax_events );
	}
public function register_coupon_ajax_events ( $ ajax_events ) { $ coupon_ajax_events = array ( 'apply-coupon' => array ( $ this , 'ajax_apply_coupon' ) , 'remove-coupon' => array ( $ this , 'ajax_remove_coupon' ) , ) ; return array_merge ( $ ajax_events , $ coupon_ajax_events ) ; }
Register Ajax Coupon Endpoints.
Register Ajax Coupon Endpoints .