WordPress.org

Forums

[resolved] display_name max length (6 posts)

  1. CraigIW
    Member
    Posted 2 years ago #

    Simple one but I don't see the answer anywhere. What is the maximum possible length of the user's display_name? I have another system that the display_name is passed to which needs to know the maximum length.

  2. chriscarvache
    Member
    Posted 2 years ago #

    I believe that the appropriate length would be stored somewhere in the DB Schema.

    Check the PHP reference to see how to do this...

    http://php.net/manual/en/function.mysql-field-len.php

  3. CraigIW
    Member
    Posted 2 years ago #

    From looking at my own database schema, it appears the answer is 250 characters.

    Two things surprise me. The first is that this, and similar restrictions, are not in the documentation. The second is that the profile edit form in WordPress does not appear to have any maxlength values on the inputs.

  4. chriscarvache
    Member
    Posted 2 years ago #

  5. CraigIW
    Member
    Posted 2 years ago #

    Ah, that's what I was looking for in the first place. Thanks.

  6. lenanghai
    Member
    Posted 2 years ago #

    THANKS FOR EVERYONE

Topic Closed

This topic has been closed to new replies.

About this Topic