Created
September 15, 2021 10:17
-
-
Save reachkamrul/ab64c3b2c6cde24d1a927c7e1d29e837 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Get user id | |
* {get_urls} | |
*/ | |
add_filter('fluentform_editor_shortcode_callback_get_urls', function ($val) { | |
$get_urls = $actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
return $get_urls; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment