Browse: Home / Hooks /

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 #

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

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