Created
September 15, 2021 12:58
-
-
Save reachkamrul/105319e817c76dd81e5dcf5c63d4e2c4 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
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