From 63ec6fbf827194d0adef99c0fe23ac79eb7469e3 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sun, 21 Aug 2022 10:26:58 -0500 Subject: [PATCH] fix(acp): Change `get_field_type()` to `get_acf_field_option()` as per admin column hook example (#48) --- plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.php b/plugin.php index a81208d..476b4e1 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.1.7 + * Version: 1.1.8 * Author: Brandon Nifong * Author URI: https://github.com/log1x */ @@ -66,7 +66,7 @@ protected function hookAdminColumns() add_filter('ac/column/value', function ($value, $id, $column) { if ( ! is_a($column, '\ACA\ACF\Column') || - $column->get_field_type() !== 'phone_number' + $column->get_acf_field_option('type') !== 'phone_number' ) { return $value; }