Skip to content

Instantly share code, notes, and snippets.

@reachkamrul
Created September 15, 2021 12:58
Show Gist options
  • Save reachkamrul/105319e817c76dd81e5dcf5c63d4e2c4 to your computer and use it in GitHub Desktop.
Save reachkamrul/105319e817c76dd81e5dcf5c63d4e2c4 to your computer and use it in GitHub Desktop.
add_action( 'wp_head', function () { ?>
<script>
jQuery(document).ready(function(){
var url = window.location.href;
jQuery('.url').val(url);
})
</script>
<?php } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment