Astra_API_Init::get_learn_chapters( WP_REST_Request $request )

Get learn chapters data.


Description


Parameters

$request

(WP_REST_Request) (Required) Full details about the request.


Return

(array) Learn chapters data.


Source

File: admin/includes/class-astra-api-init.php

	public function get_learn_chapters( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
		if ( ! is_callable( 'Astra_Learn::get_learn_chapters' ) ) {
			return array();
		}

		// Use Astra_Learn helper to get chapters with progress.
		return Astra_Learn::get_learn_chapters();
	}

Changelog

Changelog
Version Description
4.8.7 Introduced.

User Contributed Notes

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