You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'exceed_plan_quota_notice_title' => __( 'Your site has already reached over 50% of your monthly visits limit within just two weeks.', 'optimole-wp' ),
1881
+
'exceed_plan_quota_notice_description' => sprintf( /* translators: 1 is the starting anchor tag, 2 is the ending anchor tag */__( 'Based on this trend, you are likely to exceed your free quota before the month ends. To avoid any disruption in service, we strongly recommend %1$supgrading%2$s your plan or waiting until your traffic stabilizes before offloading your images. Do you still wish to proceed?', 'optimole-wp' ), '<a style="white-space: nowrap;" target=”_blank” href="https://dashboard.optimole.com/settings/billing/">', '</a>' ),
1882
+
'exceed_plan_quota_notice_start_action' => __( 'Yes, Transfer to Optimole Cloud', 'optimole-wp' ),
1883
+
'exceed_plan_quota_notice_secondary_action' => __( 'No, keep images on my website', 'optimole-wp' ),
1879
1884
],
1880
1885
'help' => [
1881
1886
'section_one_title' => __( 'Help and Support', 'optimole-wp' ),
@@ -2069,4 +2074,56 @@ public function survey_category( $value, $scale = 1 ) {
2069
2074
2070
2075
return0;
2071
2076
}
2077
+
2078
+
/**
2079
+
* Determines whether the exceed quota warning should be displayed to users.
2080
+
*
2081
+
* This function checks if the user's quota usage has exceeded a predefined limit
2082
+
* and returns a boolean value indicating whether the warning should be shown.
2083
+
*
2084
+
* @return bool True if the exceed quota warning should be displayed, false otherwise.
0 commit comments