learndash_show_metabox_course_users

apply_filters( 'learndash_show_metabox_course_users',  boolean $show_metabox )

Filters Whether to show course users metabox or not.


Description #


Parameters #

$show_metabox

(boolean) Whether to show metabox or not.


Source #

File: includes/admin/classes-posts-edits/class-learndash-admin-course-edit.php


Examples #

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

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