Title: [Plugin: Codepress Admin Columns] Filter Column Names wrong&#8230;
Last modified: August 20, 2016

---

# [Plugin: Codepress Admin Columns] Filter Column Names wrong…

 *  Resolved [raptor235](https://wordpress.org/support/users/raptor235/)
 * (@raptor235)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-codepress-admin-columns-filter-column-names-wrong/)
 * I’m trying to use the new filters… there is no documentation anywhere on them
   and also the names aren’t being properly assigned… the filter should be based
   either on column name or the field id of what’s being pulled in… I’m getting 
   things like
 *     ```
       $result
          Toronto
       $type
          column-post-meta
       $column_name
          column-meta-1
       $post_id
          1425
       ```
   
 * What’s the point of column-meta-1, it’s much more useful to filter based on the
   ID of the field you’re pulling of what’s either stored in the postmeta table 
   or column name… I don’t even know what column-meta-1 means… please explain asap…
 * [http://wordpress.org/extend/plugins/codepress-admin-columns/](http://wordpress.org/extend/plugins/codepress-admin-columns/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Tobias Schutter](https://wordpress.org/support/users/tschutter/)
 * (@tschutter)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-codepress-admin-columns-filter-column-names-wrong/#post-2886826)
 * I have added the filters so you can hook into them as you like without messing
   with the plugin’s code. I haven’t found the time yet to document each filter,
   maybe I will put this example in the FAQ if it works out for you.
 * But I will try to help you here. In some cases it can even be easier to just 
   use the wordpress core hooks and filters to control the value output of each 
   column. My plugin uses the same.
 * What would you like to be the output of column? and what is the input exactly?
 * If you want to change the output of any custom field column you can also use 
   another build in filter. Here’s an example:
 *     ```
       add_filter('cpac_get_column_value_custom_field', 'my_custom_value', 10, 3);
       function my_custom_value( $meta, $fieldtype, $field ) {
           // change output on custom-fields KEY
           if ( 'my_custom_field_key' == $field )
               $meta = 'my custom text';
   
           // change output on custom-fields VALUE
           if ( 'my_custom_field_value' == $meta )
               $meta = 'another custom text';
   
           return $meta;
       }
       ```
   
 * Hope this can help you get started 🙂
 *  Plugin Author [Tobias Schutter](https://wordpress.org/support/users/tschutter/)
 * (@tschutter)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-codepress-admin-columns-filter-column-names-wrong/#post-2886863)
 * Hi Bart, Good News. I have made adjustments to the filter to give better control.
   There will be an easy to understand example in the FAQ section.
 * The release is not out yet but the fix will be included in v1.4.6.3
 * If you need a beta release just send me a PM and I will send you one!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Codepress Admin Columns] Filter Column Names wrong…’ is closed
to new replies.

 * ![](https://ps.w.org/codepress-admin-columns/assets/icon.svg?rev=1521754)
 * [Admin Columns](https://wordpress.org/plugins/codepress-admin-columns/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codepress-admin-columns/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codepress-admin-columns/)
 * [Active Topics](https://wordpress.org/support/plugin/codepress-admin-columns/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codepress-admin-columns/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codepress-admin-columns/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tobias Schutter](https://wordpress.org/support/users/tschutter/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-codepress-admin-columns-filter-column-names-wrong/#post-2886863)
 * Status: resolved