Plugin Contributor
dwpriv
(@dwpriv)
@kevinb85 Our apologies for the delayed response. You can give this code snippet a try
//Filter the invoice View and Download names the My account page - WPO PDF Invoices & Packing Slips
add_filter( 'wpo_wcpdf_myaccount_actions', function( $action, $order ) {
$document = wcpdf_get_document( 'invoice', $order );
$view_translation = 'View translation';
$download_translation = 'DL translation';
$action['view']['name'] = $view_translation;
$action['invoice']['name'] = $download_translation;
return $action;
}, 99, 2 );
Be sure to add your translation in the $view_translation
and $download_translation
variables.
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
Thank you. Unfortunately, it did not work.
Plugin Contributor
dwpriv
(@dwpriv)
How did you add the snippet? Could you share a screenshot, please?