Skip to content

Commit

Permalink
fix(acp): Change get_field_type() to get_acf_field_option() as pe…
Browse files Browse the repository at this point in the history
…r admin column hook example (#48)
  • Loading branch information
Log1x committed Aug 21, 2022
1 parent f6efaf8 commit 63ec6fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 63ec6fb

Please sign in to comment.