Ricardo Cosentino

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Page URL in Message #8902
    Ricardo Cosentino
    Participant

    After I tried to send a Message: https://imgur.com/a/LKmBW

    I tested a basic filter just to send an alert like that:

    add_filter( 'fep_filter_message_before_send', 'send_url' );
    
    function send_url() {
        echo "<script>alert('".$_SERVER['HTTP_REFERER']."');</script>";
    }

    And it Works but… The message didn’t send

    in reply to: Page URL in Message #8900
    Ricardo Cosentino
    Participant

    I tried this in function.php:

    add_filter( 'fep_filter_message_before_send', 'send_url' );
    
    function send_url() {
        $url = $_SERVER['HTTP_REFERER'];
        return $url;
    }

    But just recieved error messages!

    in reply to: Page URL in Message #8898
    Ricardo Cosentino
    Participant

    Sorry, I didn’t understand where I need to put this code: fep_filter_message_before_send

    Is like a filter in functions.php? per example:
    add_filter( 'fep_filter_message_before_send', $_SERVER['HTTP_REFERER']);

    Thanks again!

    in reply to: Some words aren't being translated #8566
    Ricardo Cosentino
    Participant

    Yeah it worked! Thank you for this great support!

Viewing 4 posts - 1 through 4 (of 4 total)