LLMS_Order::get_product()

Retrieve an LLMS_Post_Model object for the associated product


Return Return

(LLMS_Post_Model|WP_Post|null|false) LLMS_Post_Model extended object (LLMS_Course|LLMS_Membership), null if WP get_post() fails, false if LLMS_Post_Model extended class isn't found.


Top ↑

Source Source

File: includes/models/model.llms.order.php

	public function get_product() {
		return llms_get_post( $this->get( 'product_id' ) );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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