Profile Field Text Area Max Character or Word Length
I am looking to limit the number of words or characters (either is fine) that a user is able to type into a profile field text area (set in WP>Users>Profile Fields as a Multi Line Text Area). Reason for this being that I want to include a small bio but don’t want the user going crazy and writing their life story.
One of the closest solutions I came across was via the link by Dan in here:
Although a good function, the problem with is that it still allows the user to write their life story and only truncates it when calling and displaying the profile field somewhere else (within the item-header div in my case). The original profile text area still shows and allows the full life story to be input without any boundaries.
I found this which does exactly what i need:
So my question is can I link a profile field text area created via the WP dashboard with the function from the above link? Or is there another way of getting the desired result?
- The topic ‘Profile Field Text Area Max Character or Word Length’ is closed to new replies.