Shortcode for Current Page URL - Use [geturl] for Shortcode

PHOTO EMBED

Thu Jul 22 2021 21:57:46 GMT+0000 (UTC)

Saved by @Alz #php

// Shortcode for Current Page URL - Use [geturl] for Shortcode 
//=================================================
add_shortcode ('geturl', 'get_current_page_url');
function get_current_page_url() {
	$pageURL = 'https://';
	$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
	return $pageURL;
}
content_copyCOPY