You can do this with CSS.
.metabox-prefs label[for="postexcerpt-hide"] {
display: none;
}
In regard to adding the CSS to the admin section, you have two options:
Option 1: Add the CSS to a stylesheet and enqueue it using the admin_enqueue_scripts
hook.
function load_custom_wp_admin_style() {
wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/admin-style.css', false, '1.0.0' );
wp_enqueue_style( 'custom_wp_admin_css' );
}
add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );
Option 2: Add the CSS to a style tag using the admin_head
hook.
function remove_post_excerpt_checkbox() {
?>
<style>
.metabox-prefs label[for="postexcerpt-hide"] {
display: none;
}
</style>
<?php
}
add_action( 'admin_head', 'remove_post_excerpt_checkbox' );
Related Posts:
- How to Display Post Excerpts in Admin by Default?
- Excerpt textarea missing on post editing page in admin panel
- How to hide wordpress default description box?
- Can I rename the wp-admin folder?
- How to restrict dashboard access to Admins only?
- How to remove screen options and help links in the admin area?
- I’m getting a 404 message when I try to access wpadmin
- wordpress wp-admin css not loading
- Check if user is admin by user ID
- wp_list_tables bulk actions
- Highlight custom widgets in the admin area?
- How do I find all admin users using phpmyadmin?
- wp-admin produces a 302 redirect to itself
- create users to site with specific language
- Hide a page in the admin end without a plugin?
- Restrict access to admin but allow admin_post hook
- How to set custom editor style when editing the homepage?
- How to disable or hide “collapse menu”
- Hide username from users list
- Login to wp-admin “redirect_to” points to wrong URL after migration
- TinyMCE Autoresize
- WordPress wp-admin suddenly lost its style
- Activating Child Theme Breaks Website, Blank Page, Error 500
- Create Read Only Admin
- comment_form – show all fields when logged in
- Always show same size tags for Tag Cloud in WordPress Admin
- Why should I password protect WP-Admin?
- How to change how long items are kept in the trash?
- Using /wp-admin works, using /login gives a 404. Why?
- Custom role based users are not able to access wp-admin
- How can I add ‘view mode’ to screen options for pages and cpts?
- Using List Table Filters for ALL Custom Post Types
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- My wp-admin stops working suddenly
- How to debug “You do not have sufficient permissions to access this page”? [closed]
- What is the practical difference between is_admin() and is_blog_admin()?
- How do I set the homepage to the WordPress Admin Dashboard login?
- How to check if upload window came from the featured image link?
- Today, without warning, all admin panel logins redirect to home page after login. non-admin users logins work well
- What is wrong with this code to remove wp admin bar from one page
- Stopping user deletion from running on error
- Admin search not working for any type of post
- admin_post action not usable if admin access denied to user
- Can’t log into wp-admin after migration from localhost to server
- Adding Custom Capabilites
- Display checked in checkbox theme admin page when reloaded
- Why is unfiltered_upload not working despite being enabled?
- List All Enqueued Scripts and Styles
- Can I add my own profile.php?
- Wp-admin is giving me an error “Sorry, you are not allowed to access this page.”. I do have access to the wp-admin besides the dashboard itself
- Add menu option to “New Post” menu in admin bar
- Linking table cells to network folders
- Remove bulk option row
- Admin menu in front-end
- Require Login Redirect to Login Page
- ASCII to Unicode conversion and then save the data into database using WP post editor field
- How to fix ob_end_flush() failed to send buffer of zlib output compression (1)?
- 100+ terms in any taxonomy slows down post updates?
- Is WordPress Suitable for my site?
- Delete the “wp-admin” folder – what could go wrong?
- Nickname field isn’t appearing in Admin
- How to Find The Email of a WP Admin Account
- how can I change the font on Edit Post area (admin dashboard)
- External HTTP API calls slowing down WordPress admin [closed]
- Creating custom admin panel pages without making a plugin?
- Why is my ‘export’ option missing?
- jQuery UI Datepicker error
- Change users.php WP_User_Query
- Can’t connect to WP-Admin, blank error message
- Blank page when viewing wp-admin
- Is it possible to display my theme sidebar in wordpress admin?
- wp-admin: “Sorry, you are not allowed to access this page.”
- How to access wordpress from domainB which is installed at domainA
- How to optimize the opening speed of admin panel?
- WordPress /wp-admin redirect to wrong port in docker
- How to change the URL of sub menu page?
- Change wordpress admin home page
- Strange wp admin edit buttons issue
- Cannot access wp-admin after migration to another place
- Regular users logs in as ADMIN if Admin logged in recently
- Enable Excerpt field inside the post editor for pages
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Strange Popup Ad on my WordPress Admin Dashboard
- WordPress switch domains
- Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
- Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
- OSX El Capitan local install Maximum upload file size: 2 MB But php.ini set to 64M
- Get Post ID in Admin Edit screen otherwise generate it?
- Cannot login in WordPress even after changing hash password in phpmyadmin
- Is it possible to outsource wp-admin to another server?
- Wp mwnu not works at all
- Can’t log into WordPress after domain change
- Trying to use and understand JSON API and get_posts
- Search box for hierarchical taxonomies in admin interface
- Custom Admin Message from external source to multiple users
- How can visitors redirect wp-admin to the homepage?
- Creating your own options-general.php page
- I want to know if it’s good for SEO [closed]
- My website’s wp-admin redirects to another website’s wp-admin after pointing the site url to a subdirectiory
- Https Website: CSS and JS files load in http and admin page does not load too