tomtom91
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [WooCommerce] How to remove all actions in orders admin page ?Any tips for a start to make this custom viewing area ?
I dont know where to begin … :-/
Forum: Plugins
In reply to: [WooCommerce] How to remove all actions in orders admin page ?so the only way to get the page I’d like is to use CSS display style !? 🙁
Forum: Plugins
In reply to: [WooCommerce] How to remove all actions in orders admin page ?Ok thank you
How can i find which are the templates used to build those 2 pages ?
Forum: Plugins
In reply to: [WooCommerce] How to remove all actions in orders admin page ?Hello Mike,
thank for your reply.
As you might see I already have the user role editor plugin, but capabilities in woocommerce are too larges and not enought fine to give only “read” access. People have also edit in orders …I added a filter on the shop orders to hide the checkbox and actions columns which is a beginning
add_filter( 'manage_edit-shop_order_columns', 'view_orders_credit_custom_colomns' ); function view_orders_credit_custom_colomns($columns){ global $current_user; $new_columns = (is_array($columns)) ? $columns : array(); if (current_user_can('shop_reader') ) { //here we unset the "cb" and "order_actions" columns unset( $new_columns['cb'] ); unset( $new_columns['order_actions'] ); } return $new_columns; }I’d like to do the same on the order (admin) page view, to hide all the edit/delete options.
I did it with CSS, but I don’t like it …
Is there another way ?
Viewing 4 replies - 1 through 4 (of 4 total)