learndash_show_metabox

apply_filters( 'learndash_show_metabox',  boolean $show_metabox,  string $settings_key,  string $settings_screen_id )

Filters whether to show settings section meta box.


Description #


Parameters #

$show_metabox

(boolean) Whether to show settings metabox.

$settings_key

(string) Settings key used as option name while saving settings.

$settings_screen_id

(string) Settings screen ID.


Source #

File: includes/settings/class-ld-settings-metaboxes.php


Examples #

 <?php
/**
 * Example usage for learndash_show_metabox filter.
 */
add_filter(
	'learndash_show_metabox',
	function( $show_metabox, $settings_key, $settings_screen_id ) {
		// May add any custom logic using $show_metabox, $settings_key, $settings_screen_id.

		// Always return $show_metabox.
		return $show_metabox;
	},
	10,
	3
);