Slugs (a lowercase dashed form of of a string) can come in handy within our templates periodically. They can be used to generate class or id names in the markup, for example.
Example usage: if my_field had 'Some Title' as the value:
{{ function('sanitize_title_with_dashes', my_field ) }} would render as 'some-title'.
So this PR removes the sluggify.php twig filter as superfluous. It seems intended for twig setups that did not have a built in slugification function like wordpress does.
Slugs (a lowercase dashed form of of a string) can come in handy within our templates periodically. They can be used to generate class or id names in the markup, for example.
We can generate a slug from the built in wordpress sanitize_title_with_dashes function..
Example usage: if
my_field
had 'Some Title' as the value:{{ function('sanitize_title_with_dashes', my_field ) }}
would render as 'some-title'.So this PR removes the sluggify.php twig filter as superfluous. It seems intended for twig setups that did not have a built in slugification function like wordpress does.