updated plugin GP Premium
version 2.0.3
This commit is contained in:
@ -141,6 +141,15 @@ if ( ! function_exists( 'generate_super_package_addons' ) ) {
|
||||
</div>
|
||||
<?php
|
||||
|
||||
$deprecated_modules = apply_filters(
|
||||
'generate_premium_deprecated_modules',
|
||||
array(
|
||||
'Page Header',
|
||||
'Hooks',
|
||||
'Sections',
|
||||
)
|
||||
);
|
||||
|
||||
foreach ( $addons as $k => $v ) :
|
||||
|
||||
$key = get_option( $v );
|
||||
@ -157,7 +166,8 @@ if ( ! function_exists( 'generate_super_package_addons' ) ) {
|
||||
</div>
|
||||
</div>
|
||||
<?php } else {
|
||||
if ( 'Page Header' === $k || 'Hooks' === $k ) {
|
||||
// Don't output deprecated modules.
|
||||
if ( in_array( $k, $deprecated_modules ) ) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user