public/wordpress/wp-content/plugins/wp-courseware/includes/controllers/logs.php
/**
	 * Register Logs 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 Logs Api Endpoints.

@param array $endpoints The endpoints to filter.
@param Api The API Object.

@return array $endpoints The modified array of endpoints.
Register Logs 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' => 'systemlog',
			'method'   => 'GET',
			'callback' => array( $this, 'api_get_log' ),
		);
		$endpoints[] = array(
			'endpoint' => 'deletesystemlog',
			'method'   => 'POST',
			'callback' => array( $this, 'api_delete_log' ),
		);
		return $endpoints;
	}
public function register_api_endpoints ( $ endpoints , Api $ api ) { $ endpoints [ ] = array ( 'endpoint' => 'systemlog' , 'method' => 'GET' , 'callback' => array ( $ this , 'api_get_log' ) , ) ; $ endpoints [ ] = array ( 'endpoint' => 'deletesystemlog' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_delete_log' ) , ) ; return $ endpoints ; }
Register Logs Api Endpoints.
Register Logs Api Endpoints .