• Resolved matthijswinkel

    (@matthijswinkel)


    i have a problem with woocommerce. i want to remove the view button of the orders, because i have already an invoice as example for the consument. how can i remove the view button in my account? i have given a link for wetransfer

    https://we.tl/t-TN5zrMlsaM

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @matthijswinkel ,

    I got your point.

    You can remove any actions available on the Actions column of the My account > Orders section. Here is the example code to remove the “View” button –

    add_filter('woocommerce_my_account_my_orders_actions', function($actions) {
    	unset($actions['view']);
    	return $actions;
    });

    You need to add this code in your current theme’s functions.php file or via a snippet plugin.

    I hope this information helps.

    Thank you ??

    Thread Starter matthijswinkel

    (@matthijswinkel)

    thank you very much ??
    it works

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove view button’ is closed to new replies.