public/wordpress/wp-content/plugins/wp-courseware/includes/core/license.php
/**
	 * Register License Api Endpoints.
	 *
	 * @since 4.1.0
	 *
	 * @param array $endpoints The existing endpoints.
	 * @param Api The api reference object.
	 *
	 * @return array $endpoints The modified endpoints.
	 */
Register License Api Endpoints.

@param array $endpoints The existing endpoints.
@param Api The api reference object.

@return array $endpoints The modified endpoints.
Register License Api Endpoints . @param array $endpoints The existing endpoints . @param Api The api reference object . @return array $endpoints The modified endpoints .
public function register_api_endpoints( $endpoints, Api $api ) {
		$endpoints[] = array(
			'endpoint' => 'license',
			'method'   => 'POST',
			'callback' => array( $this, 'api_license' ),
		);
		$endpoints[] = array(
			'endpoint' => 'license-clear-cache',
			'method'   => 'POST',
			'callback' => array( $this, 'api_license_clear_cache' ),
		);
		return $endpoints;
	}
public function register_api_endpoints ( $ endpoints , Api $ api ) { $ endpoints [ ] = array ( 'endpoint' => 'license' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_license' ) , ) ; $ endpoints [ ] = array ( 'endpoint' => 'license-clear-cache' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_license_clear_cache' ) , ) ; return $ endpoints ; }
Register License Api Endpoints.
Register License Api Endpoints .