Admin Columns allows you to manage and organize columns in the posts, users, comments, and media lists tables in the WordPress admin panel. Transform the WordPress admin screens into beautiful, clear overviews.
I have a custom ACF field that represents a MongoDB object. In the Admin Columns UI I can add the column for this field, but it renders as "Unsupported value format". I was looking for a hook that would let me manipulate this $value before it being rendered (like grabbing a Mongo object property), but couldn't find a way.
It would be very helpful if the Unsupported column class would filter the value before returning.. something like this:
class Unsupported extends Column {
public function get_value( $id ) {
$value = get_field( $this->get_meta_key(), $id );
// new filter to try and parse the unsupported value before giving up with the "unsupported format" message
$value = apply_filters( 'ac/column/unsupported_value', $value, $id, $this );
return is_scalar( $value ) ? (string) $value : __( 'Unsupported value format', 'codepress-admin-columns' );
}
...
}
I have a custom ACF field that represents a MongoDB object. In the Admin Columns UI I can add the column for this field, but it renders as "Unsupported value format". I was looking for a hook that would let me manipulate this $value before it being rendered (like grabbing a Mongo object property), but couldn't find a way.
It would be very helpful if the Unsupported column class would filter the value before returning.. something like this:
Then, we could use it like this:
Any chance this change is included in the plugin?
Thanks.