Skip to content

Instantly share code, notes, and snippets.

@reachkamrul
Created September 15, 2021 10:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reachkamrul/ab64c3b2c6cde24d1a927c7e1d29e837 to your computer and use it in GitHub Desktop.
Save reachkamrul/ab64c3b2c6cde24d1a927c7e1d29e837 to your computer and use it in GitHub Desktop.
/*
* 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