I have created a custom column “Cost” in Backend WooCommerce Products list panel using a hook in functions.php
file.
I want to move that column after “Price” column:
How can I achieve this?
I have created a custom column “Cost” in Backend WooCommerce Products list panel using a hook in functions.php
file.
I want to move that column after “Price” column:
How can I achieve this?
You must be logged in to post a comment.
There is many ways to achieve this. I have chosen the simplest way to do it. You can use the code snippet below to change “Cost” column location before “price” column, in product post_type backend list:
Tested and works.
Use the
add_filter(manage_edit-posttype_columns, yourFunction)
where posttype is your post type. Then list your columns in yourFunction the order you want. The best tutorial I’ve seen on this is here.