File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change 4
4
* Plugin Name: Advanced Custom Fields: Phone Number
5
5
* Plugin URI: https://github.com/log1x/acf-phone-number
6
6
* Description: A real ACF phone number field.
7
- * Version: 1.2.6
7
+ * Version: 1.3.0
8
8
* Author: Brandon Nifong
9
9
* Author URI: https://github.com/log1x
10
10
*/
@@ -36,10 +36,6 @@ public function __invoke()
36
36
}
37
37
38
38
$ this ->register ();
39
-
40
- if (defined ('ACP_FILE ' )) {
41
- $ this ->hookAdminColumns ();
42
- }
43
39
}
44
40
45
41
/**
@@ -60,24 +56,4 @@ protected function register()
60
56
return (new PhoneNumber ($ value ))->toArray ();
61
57
}, 10 , 4 );
62
58
}
63
-
64
- /**
65
- * Hook the Admin Columns Pro plugin to provide basic field support
66
- * if detected on the current WordPress installation.
67
- *
68
- * @return void
69
- */
70
- protected function hookAdminColumns ()
71
- {
72
- add_filter ('ac/column/value ' , function ($ value , $ id , $ column ) {
73
- if (
74
- ! is_a ($ column , '\ACA\ACF\Column ' ) ||
75
- $ column ->get_acf_field_option ('type ' ) !== 'phone_number '
76
- ) {
77
- return $ value ;
78
- }
79
-
80
- return get_field ($ column ->get_meta_key ())->national ?? $ value ;
81
- }, 10 , 3 );
82
- }
83
59
});
You can’t perform that action at this time.
0 commit comments