Sometime, you need to get a current page URL that is shown in the browser address bar. Here is a small code to get the current url. $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'] .$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'] .$_SERVER['REQUEST_URI'];

If you want to change the iframe url from the iframe window, you can use this small function to change the url of the iframe. <script type=”text/javascript”> $(document).ready(function() { $(‘#clickToClose’).click( function() { window.parent.frames[“myframe”].location.href=’frame.php’; return false; }); }); </script> Explanation of…

Open your theme’s “functions.php” file and this PHP code in your file. <?php add_action( ‘show_user_profile’, ‘show_extra_profile_fields’, 1 ); add_action( ‘edit_user_profile’, ‘show_extra_profile_fields’, 1 ); function show_extra_profile_fields( $user ) { ?> <h3><?php _e(‘Your Hotel Address’, ‘frontendprofile’); ?></h3> <table class=”form-table”> <tr> <th><label for=”twitter”><?php…