array( 'heading' => __( 'Ready To Speed Up Your Site?', 'wp-smushit' ), 'description' => __( 'Let’s scan your Media Library to find the hefty images slowing things down, so Smush can work its optimizing magic.', 'wp-smushit' ), 'fields' => array( 'usage' => array( 'label' => __( 'Help us make Smush better for everyone', 'wp-smushit' ), 'default' => false, 'tooltip' => __( 'Enable anonymous tracking to boost plugin performance. No personal data collected.', 'wp-smushit' ), ), ), ), 'scan_completed' => array( 'heading' => __( 'Yup, Your Site Could Definitely Be Faster', 'wp-smushit' ), 'description' => __( 'Based on the scan results, we can potentially reduce file sizes and improve the site speed.', 'wp-smushit' ), 'fields' => array(), ), 'configure' => array( 'heading' => __( 'First, Let’s Check Your Settings', 'wp-smushit' ), 'description' => __( 'We recommend enabling these features for best performance.', 'wp-smushit' ), 'fields' => array( 'lossy' => array( 'label' => __( 'Super Smush', 'wp-smushit' ), 'default' => true, 'tooltip' => __( 'Compress images up to 2x more than regular smush with multi-pass lossy compression.', 'wp-smushit' ), ), 'auto' => array( 'label' => __( 'Automatic Compression', 'wp-smushit' ), 'default' => true, 'tooltip' => __( 'Automatically optimize and compress images you upload to your site.', 'wp-smushit' ), ), 'lazy_load' => array( 'label' => __( 'Lazy Load', 'wp-smushit' ), 'default' => true, 'tooltip' => __( 'Delay loading off-screen images until visitors scroll to them. Make your page load faster, use less bandwidth, and fix "Defer offscreen images" Google PSI audit.', 'wp-smushit' ), ), 'compress_backup' => array( 'label' => __( 'Compress & Backup my Original Images', 'wp-smushit' ), 'default' => true, 'tooltip' => __( 'Smush compresses your original images — helpful if your theme serves full-size images.', 'wp-smushit' ), ), 'ultra' => array( 'label' => __( '5x Compression with Ultra', 'wp-smushit' ), 'is_pro_feature' => true, 'tooltip' => __( '5x image compression for faster-loading pages.', 'wp-smushit' ), ), 'nextgen_cdn' => array( 'label' => __( 'Next-Gen Conversion & Global Edge CDN', 'wp-smushit' ), 'is_pro_feature' => true, 'tooltip' => __( 'One-click WebP and AVIF conversion for superior performance, plus a global CDN with 119 locations for instant worldwide delivery.', 'wp-smushit' ), ), ), ), 'finish' => array( 'heading' => __( 'You’re Almost There!', 'wp-smushit' ), 'description' => __( 'To start smushing your images, create a free WPMU DEV account — quick and easy, no credit card required & no fiddly API key copy-pasting involved.', 'wp-smushit' ), 'fields' => array(), ), ); if ( Membership::get_instance()->has_access_to_hub() ) { unset( $setup_steps['finish'] ); } /** * Body content for tracking slide. * * @param Array_Utils $array_utils. * @param mixed $setup_steps Array of setup_steps. * @return void */ function smush_onboarding_tracking_body( $array_utils, $setup_steps ) { $should_show_tracking_confirmation = ! is_multisite(); ?>
get_image_attachment_count(); $smushed_count = (int) $media_item_query->get_smushed_count(); $remaining_count = $attachment_count - $smushed_count; ?>
0%
get_array_value( $setup_steps, array( 'configure', 'fields' ), array() ); $upsell_url = Helper::get_utm_link( array( 'utm_campaign' => 'smush_wizard', 'utm_content' => 'view_plans_wizard', ) ); ?>
$field ) : $is_checked = ! empty( $field['default'] ); $is_pro_feature = ! empty( $field['is_pro_feature'] ); ?>
has_access_to_hub() ) : ?> has_bulk_smush_page() ) : ?>

$field ) { if ( ! empty( $field['is_pro_feature'] ) ) { continue; } $fields[ $key ] = ! empty( $field['default'] ); } } return $fields; }, array() ); ?>