• Resolved barberjnhs

    (@barberjnhs)


    This is a request, not a bug.
    I would like the option to add the current page to the return form.
    The reason is that I re-use the form on many pages and I need to know which page the form is sent from.
    The variable $_SERVER[‘REQUEST_URI’] would do but where in the code can I add this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter barberjnhs

    (@barberjnhs)

    I have added a change to the function compose_and_send_mail which is in classes.php which writes out the URL into the subject.
    Perhaps this should be an option in future versions?

    For info, the alteration I made was on line 357/8

    $subject = preg_replace_callback( $regex, $callback, $mail_template['subject'].' from '.get_bloginfo( 'url' ).$_SERVER['REQUEST_URI'] );

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    simply put [_url]

    Special Mail Tags

    Thread Starter barberjnhs

    (@barberjnhs)

    Great! Thanks 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Option to pass the URL in the e-mail’ is closed to new replies.