woocommerce Add my action
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
function sv_add_my_account_order_actions( $actions, $order ) {
$actions['name'] = array(
'url' => 'the_action_url',
'name' => 'The Button Text',
);
return $actions;
}
add_filter( 'woocommerce_my_account_my_orders_actions', 'sv_add_my_account_order_actions', 10, 2 );