Browse: Home / Hooks /

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 #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?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
);
 

Changelog #

Changelog
Version Description
3.1.0 Introduced.