Skip to content

Instantly share code, notes, and snippets.

@SashaKolbasov
Last active May 2, 2017 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SashaKolbasov/76392cd1c3acfeb3a16c3d39f2c350cc to your computer and use it in GitHub Desktop.
Save SashaKolbasov/76392cd1c3acfeb3a16c3d39f2c350cc to your computer and use it in GitHub Desktop.
Insert String without whitespaces
<a href="tel:<?php $phone = get_field('blog_header_phone', 4); echo str_replace(" ", "", $phone); ?>">
<?php echo $phone; ?>
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment