Developer API (BETA)
Starting with version 2.9, WPComplete includes a public API for developers. This API allows custom integrations and advanced functionality directly within PHP or WordPress templates.
The API is currently in BETA. It is provided as-is and may evolve in future releases. While bug reports are welcome, WPComplete does not provide support or troubleshooting for API usage.
Available Functions
The following functions are available through the WPComplete API:
WPComplete::courses(array("posts" => false|true, "stats" => false|true))
Retrieves available courses, with optional flags for including posts and statistics.WPComplete::user()
Retrieves information about the current user.WPComplete::users()
Retrieves information about all users.WPComplete::pages(array("completed" => null|true|false, "course" => null|string, "buttons" => null|true, … ))
Retrieves completable pages with optional filters for completion status, course, and buttons. ForWPComplete::pages(), all parameters supported by the[wpc_list_pages]shortcode are also accepted.
Conclusion
The WPComplete Developer API enables deeper integration for developers who want to extend WPComplete’s functionality within WordPress. While this API is in BETA, it provides new opportunities to customize how courses, users, and pages are accessed and displayed programmatically.