• Resolved suspended

    (@wikicms)


    How to allow preservation of capital letters in the slug (post_name), such as [A-Z], in addition to [a-z].

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter suspended

    (@wikicms)

    I found part of code..
    In wp-includes/post.php:
    L2498: $post_name = sanitize_title($post_name);
    If I deleted sanitize_title I can use capital letters in the slug.
    Is it possible without modifying the post.php to filter this function?

    Thread Starter suspended

    (@wikicms)

    Sorry.. It’s easy ??
    remove_filter( 'sanitize_title', 'sanitize_title_with_dashes', 10, 3 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to allow capital letter in the slug (post_name)’ is closed to new replies.