Created
December 15, 2018 11:16
-
-
Save adamlaki/52ae471bca6b3cbea0a65b2cc09f78ec to your computer and use it in GitHub Desktop.
Slugify Any Text in WordPress with sanitize_title() Function
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
<?php | |
$title = sanitize_title('Slugify Any Text in WordPress with sanitize_title() Function'); | |
echo $title; // slugify-any-text-in-wordpress-with-sanitize_title-function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment