[wp-hackers] Filter display_name?

Otto otto at ottodestruct.com
Tue May 18 13:29:39 UTC 2010


Why not use some javascript to modify the contents of it? jQuery is
loaded on that page, and you can access it easily enough with
jQuery('#display_name').

The actual value of the element is sent back as is and saved, so
whatever you change it to will be valid.

-Otto



On Wed, May 12, 2010 at 9:10 PM, Thomas Scholz <info at toscho.de> wrote:
> Hello,
>
> I’m building a website where some of the user have academic grades in their
> names, eg.: »Ph.D. Jon Doe«.
>
> Now I want my users give the ability to decide if this title appears in
> their public name – so I cannot just add the string to the first name.
> Unfortunately, the display names to choose from are printed without any
> filter in /wp-admin/user-edit.php.
> I’ve added a contact field with the same key, but the original field is not
> completely removable because the table row lacks a unique id attribute, that
> I could address in a stylesheet. The visual result is somewhat confusing.
>
> Any ideas for an elegant solution? Should I file a bug report?
>
> Regards
> Thomas
>
> --
> http://toscho.de
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list