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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 #
| Version | Description |
|---|---|
| 3.1.4 | Introduced. |