Add a class to dashboard order row (if order has post meta)
-
Firstly, I appreciate that this is custom coding and not core code – I am posting this as I’d like to know the answer but it may not be possible and therefore could require an amend of the core code. I was going to put this on Stack Exchange but they deem WooCommerce as off topic and point you to this forum.
I simply want to add a CSS class to any order row in the dashboard orders page where the order has a specific post meta attached.
I can do this by adding a custom column and then doing some jQuery to read that column and add that class but it seems a really hacky solution, I don’t really need the column and I would have to wait for all those elements to load before applying the class.
I can’t find anyway to do this using the hooks/filters available.
Can anyone help?
- The topic ‘Add a class to dashboard order row (if order has post meta)’ is closed to new replies.