Browse: Home / Hooks /

learndash_show_upgrade_section

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

Filters whether to show upgrade section or not.


Description #


Parameters #

$show_upgrades

(boolean) Whether to show upgrades section or not.

$data_slug

(string) Data Slug used to identify each instance.


Source #

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


Examples #

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

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

Changelog #

Changelog
Version Description
3.1.4 Introduced.