learndash_show_upgrade_section

apply_filters( 'learndash_show_upgrade_section',  boolean $show_upgades,  string $data_slug )

Filters whether to show upgrade section or not.


Description #


Parameters #

$show_upgades

(boolean) Whether to show upgrades section or not.

$data_slug

(string) Data Slug used to itentify each instance.


Source #

File: includes/admin/classes-data-upgrades-actions/class-learndash-admin-data-upgrades-rename_wpproquiz-tables.php


Examples #

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

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