learndash_settings_metaboxes_legacy

apply_filters( 'learndash_settings_metaboxes_legacy',  boolean $show_legacy,  string $post_type )

Filters whether to show legacy metaboxes or not.


Description #


Parameters #

$show_legacy

(boolean) Whether to show legacy metabox or not.

$post_type

(string) Post type slug.


Source #

File: includes/class-ld-semper-fi-module.php


Examples #

 <?php
/**
 * Example usage for learndash_settings_metaboxes_legacy filter.
 */
add_filter(
	'learndash_settings_metaboxes_legacy',
	function( $show_legacy, $post_type ) {
		// May add any custom logic using $show_legacy, $post_type.

		// Always return $show_legacy.
		return $show_legacy;
	},
	10,
	2
);