Title: custom column admin before price
Last modified: January 10, 2021

---

# custom column admin before price

 *  Resolved [Patrick Horemans](https://wordpress.org/support/users/winock/)
 * (@winock)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/custom-column-admin-before-price/)
 * Hi, i have a code underneath and try to get this as a column between stock and
   price but it stil placed after the column price, how get it before price? any
   help appriciated.
 *     ```
       // Add a new column to Admin products list with a custom order
       add_filter( 'manage_edit-product_columns', 'visibility_product_column', 10);
       function visibility_product_column($columns){
           $new_columns = [];
           foreach( $columns as $key => $column ){
               $new_columns[$key] = $columns[$key];
               if( $key == 'price' ) { // Or use: if( $key == 'featured' ) {
                    $new_columns['visibility'] = __( 'Visibility','woocommerce');
               }
           }
           return $new_columns;
       }
   
       // Add content to new column raows in Admin products list
       add_action( 'manage_product_posts_custom_column', 'visibility_product_column_content', 10, 2 );
       function visibility_product_column_content( $column, $product_id ){
           global $post;
   
           if( $column =='visibility' ){
               if( has_term( 'exclude-from-catalog', 'product_visibility', $product_id ) )
                   echo '<em style="color:red;">' . __("No") . '</em>';
               else
                   echo '<span style="color:green;">' . __("Yes") . '</span>';
           }
       }
       ```
   

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

 *  [laceyrod](https://wordpress.org/support/users/laceyrod/)
 * (@laceyrod)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/custom-column-admin-before-price/#post-13889890)
 * Hi [@winock](https://wordpress.org/support/users/winock/) –
 * Thanks for reaching out.
 * As this requires more development-oriented knowledge, I’ll go ahead and leave
   this thread open for a while in case anyone else wants to chime in. However, 
   in the meantime, I can also recommend the following resources for more development-
   oriented questions:
 * – WooCommerce Slack Community: [https://woocommerce.com/community-slack/](https://woocommerce.com/community-slack/)
   –
   Advanced WooCommerce group on Facebook: [https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/)
 * Cheers.
 *  [laceyrod](https://wordpress.org/support/users/laceyrod/)
 * (@laceyrod)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/custom-column-admin-before-price/#post-13919888)
 * Howdy,
 * This thread has been inactive for a bit, so I’m going to mark it as `Resolved`
   now for the overall health of the forums. Please feel free check out the resources
   listed above for further help!
 * Also, if you’re interested in hiring someone to review your code, I can also 
   recommend the following experts: [https://woocommerce.com/customizations/](https://woocommerce.com/customizations/)
 * Hope this helps! Cheers 🙂

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

The topic ‘custom column admin before price’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [laceyrod](https://wordpress.org/support/users/laceyrod/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/custom-column-admin-before-price/#post-13919888)
 * Status: resolved