= $remind_due ) { add_action( 'admin_notices', [__CLASS__, 'show_notice']); } else if (($past_date >= $install_date) && $nobug !== "2") { add_action( 'admin_notices', [__CLASS__, 'show_notice']); } } public static function show_notice() { global $pagenow; $exclude = []; if ( ! in_array( $pagenow, $exclude ) ) { $dont_disturb = esc_url( add_query_arg( 'donot_disturb', '1', self::current_admin_url() ) ); $remind_me = esc_url( add_query_arg( 'thepack_remind_me', '1', self::current_admin_url() ) ); $plugin = 'the-pack-addon/index.php'; if ( file_exists( WP_PLUGIN_DIR . '/the-pack-addon/index.php' ) ) { $action_url = wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin . '&plugin_status=all&paged=1&s', 'activate-plugin_' . $plugin ); $button_label = __( 'Activate The Pack', 'icon-element' ); } else { $action_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=the-pack-addon' ), 'install-plugin_the-pack-addon' ); $button_label = __( 'Install The Pack Addon', 'icon-element' ); } echo '
Top notch elementor addon for your site ! 74+ free widgets, header & footer builder, 30+ pages and more. Grab it today !