PluginProbe ʕ •ᴥ•ʔ
Admin Columns / 7.1.4
Admin Columns v7.1.4
7.1.4 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 6 days ago HookCollection.php 6 days ago HookCollectionFactory.php 6 days ago Hooks.php 6 days ago
HookCollectionFactory.php
122 lines
1 <?php
2
3 declare(strict_types=1);
4
5 namespace AC\Deprecated;
6
7 class HookCollectionFactory
8 {
9 public function create_filters(): HookCollection
10 {
11 $hooks = [];
12
13 $free_filters = [
14 'ac/column/value' => 'ac/column/render',
15 'ac/column/value/sanitize' => 'ac/column/render/sanitize',
16 'ac/column/audio_player/valid_mime_types' => 'ac/column/audio_mime_types',
17 'ac/headings/label' => 'ac/column/heading/label',
18
19 // Removed Free
20 'ac/column/separator' => null,
21 'ac/headings' => null,
22 'ac/column_group' => null,
23 'ac/column/custom_field/field_types' => null,
24 'ac/read_only_message' => null,
25 'ac/column/settings/column_types' => null,
26 'ac/column/header' => null,
27 'ac/column/settings' => null,
28 'ac/list_screen/preferences' => null,
29 ];
30
31 foreach ($free_filters as $old => $replacement) {
32 $hooks[] = new Hook($old, '7.0', $replacement);
33 }
34
35 $pro_filters = [
36 'ac/column/types/pro' => 'ac/column/types',
37 'acp/custom_field/stored_date_format' => 'ac/custom_field/stored_date_format',
38 'acp/display_licence' => 'ac/display_licence',
39 'ac/export/value' => 'ac/export/render',
40 'ac/export/value/escape' => 'ac/export/render/escape',
41 'ac/export/headers' => 'ac/export/row_headers',
42 'acp/export/is_active' => 'ac/export/is_active',
43 'acp/export/file_name' => 'ac/export/file_name',
44 'acp/editing/persistent' => 'ac/editing/persistent',
45 'acp/editing/post_statuses' => 'ac/editing/post_statuses',
46 'acp/editing/save_value' => 'ac/editing/save_value',
47 'acp/editing/settings/post_types' => 'ac/editing/custom_field/post_types',
48 'acp/editing/value' => 'ac/editing/input_value',
49 'acp/editing/view' => 'ac/editing/view',
50 'acp/editing/bulk/show_confirmation' => 'ac/editing/bulk/show_confirmation',
51 'acp/editing/bulk/is_active' => 'ac/editing/bulk/active',
52 'acp/editing/bulk/updated_rows_per_iteration' => 'ac/editing/bulk/updated_rows_per_iteration',
53 'acp/delete/bulk/deleted_rows_per_iteration' => 'ac/delete/bulk/deleted_rows_per_iteration',
54 'acp/delete/reassign_user' => 'ac/delete/reassign_user',
55 'acp/horizontal_scrolling/enable' => 'ac/horizontal_scrolling/enable',
56 'acp/quick_add/enable' => 'ac/quick_add/enable',
57 'acp/resize_columns/active' => 'ac/resize_columns/active',
58 'acp/filtering/cache/seconds' => 'ac/filtering/cache/seconds',
59 'acp/search/is_active' => 'ac/search/enable',
60 'acp/search/filters' => 'ac/search/filters',
61 'acp/sorting/custom_field/date_type' => 'ac/sorting/custom_field/date_type',
62 'acp/sorting/default' => 'ac/sorting/default',
63 'acp/sorting/model' => 'ac/sorting/model',
64 'acp/sorting/remember_last_sorting_preference' => 'ac/sorting/remember_last_sorting_preference',
65 'acp/sticky_header/enable' => 'ac/sticky_header/enable',
66 'acp/table/query_args_whitelist' => 'ac/table/query_args_whitelist',
67
68 // Integration specific
69 'acp/acf/export/repeater/delimiter' => 'ac/acf/export/repeater/delimiter',
70 'acp/gravityforms/create_default_set' => 'ac/gravityforms/create_default_set',
71 'acp/wc/column/product/sales/statuses' => 'ac/wc/column/product/sales/statuses',
72 'acp/wc/show_product_variations' => 'ac/wc/show_product_variations',
73
74 // Removed Pro
75 'ac/export/column/disable' => null,
76 'acp/admin/enable_submenu' => null,
77 'acp/editing/inline/deprecated_style' => null,
78 'acp/editing/view_settings' => null,
79 'acp/sorting/post_status' => null,
80 ];
81
82 foreach ($pro_filters as $old => $replacement) {
83 $hooks[] = new Hook($old, '7.0', $replacement);
84 }
85
86 return new HookCollection($hooks);
87 }
88
89 public function create_actions(): HookCollection
90 {
91 $hooks = [];
92 $free_actions = [
93 'ac/column_types' => 'ac/column/types',
94 'ac/columns_stored' => 'ac/list_screen/saved',
95 ];
96
97 foreach ($free_actions as $old => $replacement) {
98 $hooks[] = new Hook($old, '7.0', $replacement);
99 }
100
101 $pro_actions = [
102 'acp/column_types' => 'ac/column/types',
103 'acp/acf/after_get_field_options' => 'ac/acf/after_get_field_options',
104 'acp/acf/before_get_field_options' => 'ac/acf/before_get_field_options',
105 'acp/admin/settings/hide_on_screen' => null,
106 'acp/quick_add/saved' => 'ac/quick_add/saved',
107 'acp/list_screen/deleted' => 'ac/list_screen/deleted',
108 'acp/editing/saved' => 'ac/editing/saved',
109 'acp/editing/before_save' => 'ac/editing/before_save',
110 'acp/admin/settings/table_elements' => 'ac/admin/settings/table_elements',
111 'ac/column_groups' => 'ac/column/groups',
112 ];
113
114 foreach ($pro_actions as $old => $replacement) {
115 $hooks[] = new Hook($old, '7.0', $replacement);
116 }
117
118 return new HookCollection($hooks);
119 }
120
121 }
122