updated plugin GP Premium version 2.0.3

This commit is contained in:
2021-07-25 23:25:02 +00:00
committed by Gitium
parent d7964b08bd
commit 3ef36355e9
154 changed files with 6153 additions and 9541 deletions

View File

@ -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;
}
?>