Skip to content

Instantly share code, notes, and snippets.

@LaxusCroco
Last active May 6, 2024 08:54
Show Gist options
  • Select an option

  • Save LaxusCroco/57c38ba38d62a71023c36f5c48c364d5 to your computer and use it in GitHub Desktop.

Select an option

Save LaxusCroco/57c38ba38d62a71023c36f5c48c364d5 to your computer and use it in GitHub Desktop.

Revisions

  1. LaxusCroco revised this gist May 6, 2024. 1 changed file with 8 additions and 9 deletions.
    17 changes: 8 additions & 9 deletions client-ip-jfb.php
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,20 @@
    <?php

    add_filter(

    'jet-form-builder/send-email/message_content',

    function ( string $content ) {

    return str_replace(

    return str_replace(

    '%client_ip%',
    '%client_ip%',

    \Jet_Form_Builder\Classes\Http\Http_Tools::get_ip_address(),
    \Jet_Form_Builder\Classes\Http\Http_Tools::get_ip_address(),

    $content
    $content

    );
    );

    }

    );
    );
  2. LaxusCroco created this gist May 6, 2024.
    21 changes: 21 additions & 0 deletions client-ip-jfb.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    <?php

    add_filter(

    'jet-form-builder/send-email/message_content',

    function ( string $content ) {

    return str_replace(

    '%client_ip%',

    \Jet_Form_Builder\Classes\Http\Http_Tools::get_ip_address(),

    $content

    );

    }

    );