Add product attribute columns to Woocommerce backend grid

If you have to extend the backend product grid of Woocommerce by an custom attribute , you have to follow the steps below to add product attribute columns to Woocommerce backend grid:

  1. Register and sort  the new columns via a filter hook (‘manage_edit-product_columns’):
  2. Add an action hook to fill in the respective value of each row (‘manage_product_posts_custom_column’):

For simplicity I only show the raw functions here. In general it is a really good Idea to encapsulate the code into a plugin class! 😉

Further information on how to add product attribute columns to Woocommerce backend grid

For this short article I was inspired by this Stack Overflow question:

https://stackoverflow.com/questions/23858236/how-to-add-remove-columns-in-woocommerce-admin-product-list

Leave a Reply

Your email address will not be published. Required fields are marked *