PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.8.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.8.1
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 / AdminFormListView / AdminFormListViewOptions.php

AdminFormListViewOptions.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.8.1, at src/DonationForms/AsyncData/AdminFormListView/AdminFormListViewOptions.php

66 lines 1.6 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\AdminFormListView;
4
5 /**
6 * @since 3.16.0
7 */
8 class AdminFormListViewOptions
9 {
10 /**
11 * @since 3.16.0
12 */
13 public static function isAllStatsColumnsAsync(): bool
14 {
15 if ( ! defined('GIVE_IS_ALL_STATS_COLUMNS_ASYNC_ON_ADMIN_FORM_LIST_VIEWS')) {
16 define("GIVE_IS_ALL_STATS_COLUMNS_ASYNC_ON_ADMIN_FORM_LIST_VIEWS", true);
17 }
18
19 return (bool)GIVE_IS_ALL_STATS_COLUMNS_ASYNC_ON_ADMIN_FORM_LIST_VIEWS;
20 }
21
22 /**
23 * @since 3.16.0
24 */
25 public static function isGoalColumnAsync(): bool
26 {
27 if (defined('GIVE_IS_GOAL_COLUMN_ASYNC_ON_ADMIN_FORM_LIST_VIEWS')) {
28 return (bool)GIVE_IS_GOAL_COLUMN_ASYNC_ON_ADMIN_FORM_LIST_VIEWS;
29 }
30
31 return self::isAllStatsColumnsAsync();
32 }
33
34 /**
35 * @since 3.16.0
36 */
37 public static function isDonationColumnAsync(): bool
38 {
39 if (defined('GIVE_IS_DONATIONS_COLUMN_ASYNC_ON_ADMIN_FORM_LIST_VIEWS')) {
40 return (bool)GIVE_IS_DONATIONS_COLUMN_ASYNC_ON_ADMIN_FORM_LIST_VIEWS;
41 }
42
43 return self::isAllStatsColumnsAsync();
44 }
45
46 /**
47 * @since 3.16.0
48 */
49 public static function isRevenueColumnAsync(): bool
50 {
51 if (defined('GIVE_IS_REVENUE_COLUMN_ASYNC_ON_ADMIN_FORM_LIST_VIEWS')) {
52 return (bool)GIVE_IS_REVENUE_COLUMN_ASYNC_ON_ADMIN_FORM_LIST_VIEWS;
53 }
54
55 return self::isAllStatsColumnsAsync();
56 }
57
58 /**
59 * @since 3.16.0
60 */
61 public static function useCachedMetaKeys()
62 {
63 return apply_filters('givewp_use_cached_form_stats_meta_keys_on_admin_form_list_views', false);
64 }
65 }
66