• Resolved Ivan Zhukov

    (@kowalskisu)


    Hello. How can I get the URL of the file at the time of sending the email?
    Can you help me with this? Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author mirceatm

    (@mirceatm)

    Hi!
    The new version: 1.2.0 will send the attachment id to your code via action nmr_create_attachment_id_generated.
    To get the URL, try something along the lines (not tested):

    
    // The action callback function.
    function example_callback_id_generated( $attachment_id ) {
        // (maybe) do something with the args.
        $url = wp_get_attachment_url( $attachment_id );
    }
    add_action( 'nmr_create_attachment_id_generated', 'example_callback_id_generated', 10, 1 );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Get url of file’ is closed to new replies.