PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / src / DonationForms / AsyncData / FormGrid / FormGridViewOptions.php

FormGridViewOptions.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/DonationForms/AsyncData/FormGrid/FormGridViewOptions.php

54 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\DonationForms\AsyncData\FormGrid;
4
5 /**
6 * @since 3.16.0
7 */
8 class FormGridViewOptions
9 {
10 /**
11 * @since 3.16.0
12 */
13 public static function isAllProgressBarStatsAsync(): bool
14 {
15 if ( ! defined('GIVE_IS_ALL_PROGRESS_BAR_STATS_ASYNC_ON_FORM_GRID')) {
16 define("GIVE_IS_ALL_PROGRESS_BAR_STATS_ASYNC_ON_FORM_GRID", true);
17 }
18
19 return (bool)GIVE_IS_ALL_PROGRESS_BAR_STATS_ASYNC_ON_FORM_GRID;
20 }
21
22 /**
23 * @since 3.16.0
24 */
25 public static function isProgressBarAmountRaisedAsync(): bool
26 {
27 if (defined('GIVE_IS_PROGRESS_BAR_AMOUNT_RAISED_ASYNC_ON_FORM_GRID')) {
28 return (bool)GIVE_IS_PROGRESS_BAR_AMOUNT_RAISED_ASYNC_ON_FORM_GRID;
29 }
30
31 return self::isAllProgressBarStatsAsync();
32 }
33
34 /**
35 * @since 3.16.0
36 */
37 public static function isProgressBarDonationsCountAsync(): bool
38 {
39 if (defined('GIVE_IS_PROGRESS_BAR_DONATIONS_COUNT_ASYNC_ON_FORM_GRID')) {
40 return (bool)GIVE_IS_PROGRESS_BAR_DONATIONS_COUNT_ASYNC_ON_FORM_GRID;
41 }
42
43 return self::isAllProgressBarStatsAsync();
44 }
45
46 /**
47 * @since 3.16.0
48 */
49 public static function useCachedMetaKeys()
50 {
51 return apply_filters('givewp_use_cached_form_stats_meta_keys_on_form_grid', false);
52 }
53 }
54