• Resolved mjunes

    (@mjunes)


    Hello,

    I’d like to remove the action buttons of your plugin (PDF invoice & PDF Packing Slip) from woocommerce orders page. I don’t know how to do it. Please help. Thanks much.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    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.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    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. ??

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Oh, sorry, I didn’t know you had already given us 5 stars: Thank you very much! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need to remove Action buttons’ is closed to new replies.