diff --git a/plugin.php b/plugin.php index d398962..0995070 100644 --- a/plugin.php +++ b/plugin.php @@ -4,7 +4,7 @@ * Plugin Name: Advanced Custom Fields: Phone Number * Plugin URI: https://github.com/log1x/acf-phone-number * Description: A real ACF phone number field. - * Version: 1.2.6 + * Version: 1.3.0 * Author: Brandon Nifong * Author URI: https://github.com/log1x */ @@ -36,10 +36,6 @@ public function __invoke() } $this->register(); - - if (defined('ACP_FILE')) { - $this->hookAdminColumns(); - } } /** @@ -60,24 +56,4 @@ protected function register() return (new PhoneNumber($value))->toArray(); }, 10, 4); } - - /** - * Hook the Admin Columns Pro plugin to provide basic field support - * if detected on the current WordPress installation. - * - * @return void - */ - protected function hookAdminColumns() - { - add_filter('ac/column/value', function ($value, $id, $column) { - if ( - ! is_a($column, '\ACA\ACF\Column') || - $column->get_acf_field_option('type') !== 'phone_number' - ) { - return $value; - } - - return get_field($column->get_meta_key())->national ?? $value; - }, 10, 3); - } });