public/wordpress/wp-content/plugins/wp-courseware/includes/controllers/subscriptions.php
/**
	 * Register Subscriptions Api Endpoints.
	 *
	 * @since 4.3.0
	 *
	 * @param array $endpoints The endpoints to filter.
	 * @param Api The api object.
	 *
	 * @return array $endpoints The modified array of endpoints.
	 */
Register Subscriptions Api Endpoints.

@param array $endpoints The endpoints to filter.
@param Api The api object.

@return array $endpoints The modified array of endpoints.
Register Subscriptions Api Endpoints . @param array $endpoints The endpoints to filter . @param Api The api object . @return array $endpoints The modified array of endpoints .
public function register_api_endpoints( $endpoints, Api $api ) {
		$endpoints[] = array( 'endpoint' => 'orders', 'method' => 'GET', 'callback' => array( $this, 'api_get_subscriptions' ) );
		return $endpoints;
	}
public function register_api_endpoints ( $ endpoints , Api $ api ) { $ endpoints [ ] = array ( 'endpoint' => 'orders' , 'method' => 'GET' , 'callback' => array ( $ this , 'api_get_subscriptions' ) ) ; return $ endpoints ; }
Register Subscriptions Api Endpoints.
Register Subscriptions Api Endpoints .