learndash_show_metabox_course_groups

apply_filters( 'learndash_show_metabox_course_groups',  boolean $show_metabox )

Filters whether to show course groups metabox or not.


Description #


Parameters #

$show_metabox

(boolean) Whether to show course groups metaboxes or not.


Source #

File: includes/admin/class-learndash-admin-menus-tabs.php


Examples #

 <?php
/**
 * Example usage for learndash_show_metabox_course_groups filter.
 */
add_filter(
	'learndash_show_metabox_course_groups',
	function( $show = true ) {
		// Set $show to false to NOT show the Course Groups metabox.
		$show = false;

		// always return $show;
		return $show;
	},
	30,
	1
);