In my custom field, users add their site URls. I want to display them like this example.com not http//example.com/. I want to remove the http/https. This is just for the display purpose.
<?php
$site = get_user_meta( $current_user->ID, 'url', true );
echo '<a class="user-website" href="'.$site.'">'.$site.'</a>';
?>
While display, it displays the entire URL like http://example.com in a link. I want to remove the protocol and display like example.com
Thanks