1. Home
  2. Docs
  3. Filters & Hooks
  4. How to stop lowercasing custom URIs

How to stop lowercasing custom URIs

By default, all the custom URIs are sanitized and lower-cased (just like the slugs are filtered with native sanitize_title_with_dashes() function).

For example, products/LEATHER-JACKET is automatically converted (when the custom URI is saved) to products/leather-jacket.

Since 2.0.5.5 version, you can disable strtolower() function and stop lower-casing the custom URIs. All you need to do is to paste this line of code to your theme’s functions.php file:

add_filter('permalink-manager-force-lowercase-uris', '__return_false');
Tags ,
Was this article helpful to you? Yes No

How can we help?

Wait!!! Before you go...

Still not convinced? Use following discount code during Gumroad checkout and get 10% off!

BLOG

If you have any questions or need further information, please feel free to contact me via email: