I'm going to add a button from my account order to make it go to a specific url. I made a button, but I want to open it with a new window instead of going to the page. What should I do? Down below is the code I added, and I'd like to open url here with a cage:
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 );
how to add target="_blank"
to each additional custom button?