LLMS_Admin_Meta_Boxes::__construct()

Constructor


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/admin/post-types/class.llms.meta.boxes.php

	public function __construct() {

		// achievements
		new LLMS_Meta_Box_Achievement();

		// certs
		new LLMS_Meta_Box_Certificate();

		// emails
		new LLMS_Meta_Box_Email_Settings();

		// engagements
		new LLMS_Meta_Box_Engagement();

		// membership restriction metabox
		new LLMS_Meta_Box_Access();

		// courses
		new LLMS_Meta_Box_Course_Options();

		// memberships
		new LLMS_Meta_Box_Membership();

		// courses & memberships
		require_once 'meta-boxes/class.llms.meta.box.course.builder.php';
		require_once 'meta-boxes/class.llms.meta.box.visibility.php';
		require_once 'meta-boxes/class.llms.meta.box.instructors.php';
		new LLMS_Meta_Box_Product();
		new LLMS_Meta_Box_Students();

		// lessons
		require_once 'meta-boxes/class.llms.meta.box.lesson.php';

		// coupons
		new LLMS_Meta_Box_Coupon();

		// orders
		new LLMS_Meta_Box_Order_Submit();
		new LLMS_Meta_Box_Order_Details();
		new LLMS_Meta_Box_Order_Transactions();
		new LLMS_Meta_Box_Order_Enrollment();
		new LLMS_Meta_Box_Order_Notes();

		// vouchers
		new LLMS_Meta_Box_Voucher();

		add_action( 'add_meta_boxes', array( $this, 'hide_meta_boxes' ), 10 );
		add_action( 'add_meta_boxes', array( $this, 'refresh_meta_boxes' ), 10 );
		add_action( 'add_meta_boxes', array( $this, 'get_meta_boxes' ), 10 );
		add_action( 'save_post', array( $this, 'save_meta_boxes' ), 10, 2 );

		add_action( 'lifterlms_process_llms_voucher_meta', 'LLMS_Meta_Box_Voucher_Export::export', 10, 2 );

		//Error handling
		add_action( 'admin_notices', array( $this, 'display_errors' ) );
		add_action( 'shutdown', array( $this, 'set_errors' ) );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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