llms_get_product( WP_Post|int|false $the_product = false, array $args = array() )
Get Product Object
Parameters Parameters
- $the_product
-
(WP_Post|int|false) (Optional) Course or membership post object or id. If
falseuses the global$postobject.Default value: false
- $args
-
(array) (Optional) Arguments to pass to the LLMS_Product Constructor.
Default value: array()
Return Return
(LLMS_Proudct)
Source Source
File: includes/llms.template.functions.php
/** * Get the link to the My Courses endpoint * * @return string * * @since 3.0.0
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.37.13 | Introduced. |