Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
* 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