get_start_timestamp(); $start_timestamp = empty( $start_timestamp ) ? time() : $start_timestamp; $mins_since_start = ( time() - $start_timestamp ) / 60; $dash_profile_data = smartcrawl_get_dash_profile_data(); $user_email = $dash_profile_data ? $dash_profile_data->user_email : false; if ( $start_timestamp && $user_email && $mins_since_start > 10 ) { $progress_state = sprintf( esc_html__( "The crawl is taking longer than expected. We'll email %s when the crawl has completed.", 'wds' ), "$user_email" ); } else { $progress_state = esc_html__( 'Crawling website...', 'wds' ); } ?>