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.
Source Source
File: includes/models/model.llms.order.php
public function get_product() { return llms_get_post( $this->get( 'product_id' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |