Hello @mjunes,
If you want to disable all action buttons, you can go to Screen options in the top right corner, and make sure Actions is unchecked.
If you just want to disable just our action buttons you will need the following code snippet:
add_filter( 'wpo_wcpdf_listing_actions', 'wpo_wcpdf_hide_action_buttons_order_overview', 10, 2 );
function wpo_wcpdf_hide_action_buttons_order_overview( $listing_actions, $order ) {
unset(
$listing_actions['invoice'],
$listing_actions['packing-slip'],
$listing_actions['proforma'],
$listing_actions['credit-note']
);
return $listing_actions;
}
This code snippet should be placed in the functions.php of your child-theme. If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
Let me know if it works!
Thread Starter
mjunes
(@mjunes)
I wanted to remove only the action buttons of your plugin and the code you provided works perfectly. Excellent support. Thank you very much.
I’m glad to know it works!
If you don’t mind and have the time, do you think you could leave us a review?
Thanks in advance and all the best with your store!
Thread Starter
mjunes
(@mjunes)
How could I not? Left one way back. 5 stars ain’t enough. 🙂
Oh, sorry, I didn’t know you had already given us 5 stars: Thank you very much! ❤️