llms_get_image_size( $name, $default = array() )
Contents
Source Source
File: includes/llms.template.functions.php
* @since Unknown
* @since 3.37.13 Use `LLMS_Product` in favor of the deprecated `LLMS_Course_Factory::get_product()` method.
*
* @param WP_Post|int|false $the_product Course or membership post object or id. If `false` uses the global `$post` object.
* @param array $args Arguments to pass to the LLMS_Product Constructor.
* @return LLMS_Proudct
*/
function llms_get_product( $the_product = false, $args = array() ) {
if ( ! $the_product ) {
global $post;
Expand full source code Collapse full source code View on GitHub