I'd like to change the title field of a post in admin panel. I'd like this field was "textarea" instead of being "input type='text'".
Would it be possible through any hook in functions.php?
Thanks in advance!
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI'd like to change the title field of a post in admin panel. I'd like this field was "textarea" instead of being "input type='text'".
Would it be possible through any hook in functions.php?
Thanks in advance!
as this is a default field, i don't think it is possible to achieve what you want with the help function hooks, however you can do this by editing edit-form-advanced.php file inside wp-admin folder,
the code you may want to edit is located in line # 291,
this is the input type for title field
<input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
Do this at your own risk as you are going to edit wordpress core file, once you edit this you might not able to update your wordpress automatically