WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] display_name max length (6 posts)

  1. CraigIW
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year ago #

  5. CraigIW
    Member
    Posted 1 year ago #

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

  6. lenanghai
    Member
    Posted 1 year ago #

    THANKS FOR EVERYONE

Topic Closed

This topic has been closed to new replies.

About this Topic