• Is it possible to generate links without wp_nonce security?

    I generate links to packing slips for the distributors (sent via email) who don’t log into the system. I know this was possible in earlier versions and am comfortable pulling checks/bits out of the code where necessary – an idea of where to start would be good ??

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! Unfortunately this is currently not possible from within the plugin. However, it shouldn’t be too difficult to write your own function to handle this.
    If you catch the order ID in the url, you can then display the PDF with PHP:

    
    $order = wc_get_order( $order_id );
    $invoice = wcpdf_get_invoice( $order );
    $invoice->output_pdf();
    

    Hope that helps!
    Ewot

Viewing 1 replies (of 1 total)
  • The topic ‘bypass wp_nonce’ is closed to new replies.