PluginProbe ʕ •ᴥ•ʔ
Admin Columns / 7.0.13
Admin Columns v7.0.13
7.0.19 2.3.5 2.4 2.4.1 2.4.10 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.6.1 2.5.6.2 2.5.6.3 2.5.6.4 3.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.7 3.1 3.1.1 3.1.10 3.1.2 3.1.3 3.1.5 3.2.3 3.2.7 3.3.1 3.4.1 3.4.6 3.4.8 4.0.1 4.0.3 4.1.6 4.2.2 4.2.5 4.3 4.3.2 4.4.1 4.4.4 4.4.5 4.5.5 4.6.1 4.7.18 4.7.19 4.7.20 4.7.7 7.0.13 7.0.14 7.0.16 trunk 1.0 1.1 1.1.3 1.2 1.2.1 1.3 1.3.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.5.1 1.4.6 1.4.6.1 1.4.6.2 1.4.6.3 1.4.6.4 1.4.7 1.4.8 1.4.9 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2 2.2.1 2.2.1.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.5.1 2.2.6 2.2.6.1 2.2.6.2 2.2.6.3 2.2.6.4 2.2.7 2.2.8 2.2.8.1 2.2.9 2.3.1 2.3.2 2.3.3
codepress-admin-columns / classes / Deprecated / HookCollectionFactory.php
codepress-admin-columns / classes / Deprecated Last commit date
Hook.php 3 months ago HookCollection.php 3 months ago HookCollectionFactory.php 3 months ago Hooks.php 3 months ago
HookCollectionFactory.php
122 lines
1 <?php
2
3 declare(strict_types=1);
4
5 namespace AC\Deprecated;
6
7 class HookCollectionFactory
8 {
9
10 public function create_filters(): HookCollection
11 {
12 $hooks = [];
13
14 $free_filters = [
15 'ac/column/value' => 'ac/column/render',
16 'ac/column/value/sanitize' => 'ac/column/render/sanitize',
17 'ac/column/audio_player/valid_mime_types' => 'ac/column/audio_mime_types',
18 'ac/headings/label' => 'ac/column/heading/label',
19
20 // Removed Free
21 'ac/column/separator' => null,
22 'ac/headings' => null,
23 'ac/column_group' => null,
24 'ac/column/custom_field/field_types' => null,
25 'ac/read_only_message' => null,
26 'ac/column/settings/column_types' => null,
27 'ac/column/header' => null,
28 'ac/column/settings' => null,
29 'ac/list_screen/preferences' => null,
30 ];
31
32 foreach ($free_filters as $old => $replacement) {
33 $hooks[] = new Hook($old, '7.0', $replacement);
34 }
35
36 $pro_filters = [
37 'ac/column/types/pro' => 'ac/column/types',
38 'acp/custom_field/stored_date_format' => 'ac/custom_field/stored_date_format',
39 'acp/display_licence' => 'ac/display_licence',
40 'ac/export/value' => 'ac/export/render',
41 'ac/export/value/escape' => 'ac/export/render/escape',
42 'ac/export/headers' => 'ac/export/row_headers',
43 'acp/export/is_active' => 'ac/export/is_active',
44 'acp/export/file_name' => 'ac/export/file_name',
45 'acp/editing/persistent' => 'ac/editing/persistent',
46 'acp/editing/post_statuses' => 'ac/editing/post_statuses',
47 'acp/editing/save_value' => 'ac/editing/save_value',
48 'acp/editing/settings/post_types' => 'ac/editing/custom_field/post_types',
49 'acp/editing/value' => 'ac/editing/input_value',
50 'acp/editing/view' => 'ac/editing/view',
51 'acp/editing/bulk/show_confirmation' => 'ac/editing/bulk/show_confirmation',
52 'acp/editing/bulk/is_active' => 'ac/editing/bulk/active',
53 'acp/editing/bulk/updated_rows_per_iteration' => 'ac/editing/bulk/updated_rows_per_iteration',
54 'acp/delete/bulk/deleted_rows_per_iteration' => 'ac/delete/bulk/deleted_rows_per_iteration',
55 'acp/delete/reassign_user' => 'ac/delete/reassign_user',
56 'acp/horizontal_scrolling/enable' => 'ac/horizontal_scrolling/enable',
57 'acp/quick_add/enable' => 'ac/quick_add/enable',
58 'acp/resize_columns/active' => 'ac/resize_columns/active',
59 'acp/filtering/cache/seconds' => 'ac/filtering/cache/seconds',
60 'acp/search/is_active' => 'ac/search/enable',
61 'acp/search/filters' => 'ac/search/filters',
62 'acp/sorting/custom_field/date_type' => 'ac/sorting/custom_field/date_type',
63 'acp/sorting/default' => 'ac/sorting/default',
64 'acp/sorting/model' => 'ac/sorting/model',
65 'acp/sorting/remember_last_sorting_preference' => 'ac/sorting/remember_last_sorting_preference',
66 'acp/sticky_header/enable' => 'ac/sticky_header/enable',
67 'acp/table/query_args_whitelist' => 'ac/table/query_args_whitelist',
68
69 // Integration specific
70 'acp/acf/export/repeater/delimiter' => 'ac/acf/export/repeater/delimiter',
71 'acp/gravityforms/create_default_set' => 'ac/gravityforms/create_default_set',
72 'acp/wc/column/product/sales/statuses' => 'ac/wc/column/product/sales/statuses',
73 'acp/wc/show_product_variations' => 'ac/wc/show_product_variations',
74
75 // Removed Pro
76 'ac/export/column/disable' => null,
77 'acp/admin/enable_submenu' => null,
78 'acp/editing/inline/deprecated_style' => null,
79 'acp/editing/view_settings' => null,
80 'acp/sorting/post_status' => null,
81 ];
82
83 foreach ($pro_filters as $old => $replacement) {
84 $hooks[] = new Hook($old, '7.0', $replacement);
85 }
86
87 return new HookCollection($hooks);
88 }
89
90 public function create_actions(): HookCollection
91 {
92 $hooks = [];
93 $free_actions = [
94 'ac/column_types' => 'ac/column/types',
95 'ac/columns_stored' => 'ac/list_screen/saved',
96 ];
97
98 foreach ($free_actions as $old => $replacement) {
99 $hooks[] = new Hook($old, '7.0', $replacement);
100 }
101
102 $pro_actions = [
103 'acp/column_types' => 'ac/column/types',
104 'acp/acf/after_get_field_options' => 'ac/acf/after_get_field_options',
105 'acp/acf/before_get_field_options' => 'ac/acf/before_get_field_options',
106 'acp/admin/settings/hide_on_screen' => null,
107 'acp/quick_add/saved' => 'ac/quick_add/saved',
108 'acp/list_screen/deleted' => 'ac/list_screen/deleted',
109 'acp/editing/saved' => 'ac/editing/saved',
110 'acp/editing/before_save' => 'ac/editing/before_save',
111 'acp/admin/settings/table_elements' => 'ac/admin/settings/table_elements',
112 'ac/column_groups' => 'ac/column/groups',
113 ];
114
115 foreach ($pro_actions as $old => $replacement) {
116 $hooks[] = new Hook($old, '7.0', $replacement);
117 }
118
119 return new HookCollection($hooks);
120 }
121
122 }