LLMS_Meta_Box_Product::get_html()
Retrieve the HTML for the metabox
Return Return
(string)
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.product.php
public function get_html() { ob_start(); $product = new LLMS_Product( $this->post ); add_filter( 'teeny_mce_buttons', array( $this, 'mce_buttons' ), 10, 2 ); $course = ( 'course' === $product->get( 'type' ) ) ? new LLMS_Course( $product->post ) : false; // get available checkout redirection types. $product_type = ( ! $course ) ? __( 'Membership', 'lifterlms' ) : __( 'Course', 'lifterlms' ); $checkout_redirection_types = llms_get_checkout_redirection_types( $product_type ); include LLMS_PLUGIN_DIR . 'includes/admin/views/access-plans/metabox.php'; remove_filter( 'teeny_mce_buttons', array( $this, 'mce_buttons' ), 10, 2 ); return apply_filters( 'llms_metabox_product_output', ob_get_clean(), $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.30.0 | Added checkout redirect settings. |
3.29.0 | Introduced. |