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');
Was this article helpful to you? Yes No
Ending in
00 Days
00 Hrs
00 Mins
00 Secs
Expired!
Use coupon LIFE19 during checkout to get a lifetime license with 30% discount!
Buy Permalink Manager Pro