LLMS_Admin_Resources::register_meta_boxes()

Register Resource’s meta boxes.


Return Return

(void)


Top ↑

Source Source

File: includes/admin/class.llms.admin.resources.php

	public static function register_meta_boxes() {

		add_meta_box(
			'llms_dashboard_welcome_video',
			__( 'Welcome to LifterLMS', 'lifterlms' ),
			array( __CLASS__, 'meta_box' ),
			'toplevel_page_llms-resources',
			'normal',
			'default',
			array( 'view' => 'welcome-video' )
		);

		add_meta_box(
			'llms_dashboard_resource_links',
			__( 'Resource Links', 'lifterlms' ),
			array( __CLASS__, 'meta_box' ),
			'toplevel_page_llms-resources',
			'normal',
			'default',
			array( 'view' => 'resource-links' )
		);

		add_meta_box(
			'llms_dashboard_getting_started',
			__( 'Getting Started', 'lifterlms' ),
			array( __CLASS__, 'meta_box' ),
			'toplevel_page_llms-resources',
			'side',
			'default',
			array( 'view' => 'getting-started' )
		);

		/**
		 * Fired after adding the meta boxes on the LifterLMS admin resources page.
		 *
		 * Third parties can hook here to remove LifterLMS core meta boxes.
		 *
		 * @since 7.4.1
		 */
		do_action( 'llms_resources_meta_boxes_added' );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.4.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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