Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Hide post title input for all roles except admin

I tried following code and its working. You need to place this in your theme’s funtions.php file. Let me know how it goes 🙂


add_action('admin_init', 'admin_only_post_title');
function admin_only_post_title() {  
if (!current_user_can('manage_options'))
     remove_post_type_support('post', 'title');

}

Related Posts:

  1. Change post title during post saving process
  2. Unsure how to add simple checkboxes that write to a small table to admin
  3. How to pass parameters to admin_notices?
  4. Styling Shortcodes in Visual Editor
  5. How do I set up a webhook?
  6. Adding custom Javascript to the head tag in Admin
  7. Integrate post tags in Post Edit page with qTranslate
  8. How to retain HTML5 Attributes on Markup
  9. Custom taxonomy admin description
  10. Use latest jQuery in WordPress (admin interface)
  11. remove_action with profile_personal_options
  12. user-new.php less detailed after WP3.1; how to revert?
  13. Admin: global $post empty
  14. How do you handle postmeta in admin area?
  15. Enqueue and Dequeue from admin bar nodes
  16. Remove Permalink From Admin Edit Post
  17. WordPress 3.1’s admin bar disappears only leaving its 28 px padding (in ubuntu)!
  18. How to pass multiple parameter in add_action()
  19. Other than save_post any other actions on add / edit post screen?
  20. Best way to achieve multiple links in a post title
  21. Weird jquery problem when upgrade to WordPress 3.1
  22. Show only content in page after action click in WordPress admin
  23. Find out if post was just updated on post edit screen
  24. Form submit in admin does not set is_admin() true
  25. How to retain HTML5 Attributes on Markup
  26. ‘Conflict’ with action deleted_post and is_admin()
  27. Editing post in admin panel
  28. How to sort post_meta in edit.php?
  29. Remove “minor-publishing” div from Publish admin metabox
  30. Background image in login showing in admin area
  31. WordPress Brute Force Prevention
  32. Plugin Development – Functions or Hooks?
  33. Bind custom role to admin page
  34. How to change all “Post” texts in dahboard into “Article”?
  35. Why does my delete_post hook get called twice
  36. Returning or use form data using a hook?
  37. Customizing Users in Admin Area
  38. How do I add some javascript validation to the admin interface form’s onsubmit?
  39. Add menu item to edit specific page
  40. How to modify admin headers
  41. How To Make Iris Color Picker Showed Up Over Form and Text?
  42. Data won’t save if metabox within conditional in admin. What am I missing?
  43. Admin login not working
  44. WordPress admin toolbar not loading styles after migration
  45. Changing admin user id for database
  46. Access for adding subpages but not for pages
  47. Filter WooCommerce Orders
  48. WordPress custom admin functions security
  49. /wp-admin/install.php redirecting to 123-reg
  50. avoiding the display of certain categories to certain user roles at content entry time
  51. is there an update_post_meta action
  52. admin_enqueue_scripts not rending JS file correctly
  53. remove menus for a specific role?
  54. Limiting Admin Backend Search to Title
  55. Echo title attribute php
  56. Post editor is 89953px tall. How to fix?
  57. How can I add a menu item to the admin area?
  58. Adding and removing columns from the admin pages panel
  59. paginate_links on custom query in admin – ‘sufficient permissions’ error
  60. Simplify the admin end
  61. Can I change the “Home” text in the menu?
  62. Directly editing content on webpage, is it possible?
  63. Let’s Create Custom Field Template Documentation
  64. I’m a super admin and I want to give an admin the ability to add new users…?
  65. Customizing Titles on the Fly with Code
  66. my checkbox is not saving it’s value
  67. Return User Meta text as links to post edit inside the user columns
  68. Can’t login to my admin area
  69. Home page is redirecting to another page – no obvious reason
  70. Admin Panel Development [closed]
  71. Does an administrator access allow someone to access to the WordPress database?
  72. Live reload preview just reloads forever
  73. hide elements of admin with css file
  74. I need help using pre_get_comments to limit comments in the comments admin screen
  75. WordPress Hacked 5.5 admin-ajax.php [closed]
  76. Backend Checkboxes working – but not visual?
  77. Order All Pages table in administration
  78. What is the best way to modify Admin Panel on WordPress?
  79. if in category but only with post meta
  80. How do I modify the size of the text in my page titles?
  81. Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
  82. login_headertitle is deprecated since version 5.2.0
  83. Run a function on all posts
  84. Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
  85. How to add convenient buttons for new custom post statuses
  86. How to disable Media Library uploads for non-Admin users?
  87. Update post meta within save_post action
  88. How to create “custom page types” with different custom fields in them?
  89. Hide admin notice when user profile updated
  90. Advanced WordPress plugin activation detection
  91. Change Name of Category Heading in New Post
  92. Does deleting the table users prevent all logins?
  93. how to show admin notice in custom menu page after submitting the form?
  94. Accidentally changed website url
  95. Page can’t hand request – HTTP ERROR 500 – when updating something
  96. WordPress Admin Menu Order for ‘admin.php’ pages
  97. WordPress Screen options does not show any fields
  98. Locked out of WordPress website from wrong amount of login attempts
  99. wordpress is_front_page() issue
  100. Admin user lacks admin permissions after hack and can’t reinstate
Categories admin Tags actions, admin, customization, post-meta, title
Open editor post in a popup
Cannot select signup_meta upon multisite user activation

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress