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 #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 );
Changelog #
Version | Description |
---|---|
3.1.0 | Introduced. |