LLMS_REST_Courses_Controller::get_object_id( LLMS_Course $object )

Retrieve an ID from the object


Parameters Parameters

$object

(LLMS_Course) (Required) LLMS_Course object.


Top ↑

Return Return

(int)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/server/class-llms-rest-courses-controller.php

	protected function get_object_id( $object ) {

		// For example.
		return $object->get( 'id' );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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