llms_rest_get_api_endpoint_data( string $endpoint, array $params = array() )

Get data from a WP Rest API endpoint.


Description Description


Parameters Parameters

$endpoint

(Required) API endpoint, eg "/llms/v1/courses".

$params

(Optional) Query params to add to the request.

Default value: array()


Top ↑

Return Return

(array|WP_Error)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/llms-rest-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.