learndash_upgrade_notice_admin_show

apply_filters( 'learndash_upgrade_notice_admin_show',  boolean $show_notice,  string $plugin_slug )

Filters whether to show the upgrade notice in admin banner.


Description #

By default this will show on all pages.


Parameters #

$show_notice

(boolean) Whether to show the update notice.

$plugin_slug

(string) The slug of the plugin.


Source #

File: includes/class-ld-addons-updater.php


Examples #

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

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

Changelog #

Changelog
Version Description
3.1.4 Introduced.