Try this (don’t forget to replace icon URL):
add_filter( 'display_post_states', 'password_protected_icon' );
function password_protected_icon( $post_states ) {
$text = __('Password protected');
$pos = array_search( $text, $post_states);
if( false !== $pos )
$post_states[$pos] = '<img src="http://i.stack.imgur.com/aIDa6.png" title="'.htmlspecialchars($text).'"/>';
return $post_states;
}
Related Posts:
- Organizing Code in your WordPress Theme's functions.php File?
- Admin Page Redirect
- Disable dragging of meta boxes?
- How to display by default only published posts/pages in the admin area?
- How to remove screen options and help links in the admin area?
- Sort admin menu items
- Custom column for changing post status via ajax
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- Pre-fill fields with content from outside when creating a new post
- List latest posts in WP-Admin
- using slug instead of ID in admin edit post url
- How to remove items from +New admin menu?
- Make sub menu items a main link in the admin menu using fuctions.php
- Add column to pages table
- Admin account only shows Profile and Dashboard with no activity
- Can initial focus be set to search field in WordPress Media Library?
- wp-admin – save options without refreshing?
- Make “Post published. View post” Open in a New Tab
- How do you modify CSS files via admin panel?
- Hiding by default specific post status on backend list?
- How to prevent parent admin page from appearring as a child admin page
- Add filter-by-tag in the all posts admin console page
- Change WP-Login or WP-Admin
- SSL Partially breaking admin panel and elementor
- What is the practical difference between is_admin() and is_blog_admin()?
- How do I set the homepage to the WordPress Admin Dashboard login?
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- How to hide wordpress default description box?
- Change default Posts page
- Password reset link becomes invalid immediately [closed]
- Remove rows in the manage post/page view
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- Allow administrators to pick post author on custom post type edit screen
- How to make the front-end RTL without changing the admin panel language?
- Disable inline_edit() on edit.php
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Add column to pages table
- Use Password Protected Form without the use of wp-login.php
- What are the requirements to make the admin toolbar show up on the front end
- Remove bulk option row
- plugin to post from admin to flickr [closed]
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- Need help for WordPress User Session Management?
- What is the correct way to get only display plugin for Administrator Only
- Admin top level menu, pointing to an external url
- Browse Happy in 3.2
- How to break line / add to ADMIN menu
- Change the color of the Password Protected Post titles
- External HTTP API calls slowing down WordPress admin [closed]
- Outputting something based on the presence of post variable in admin screens
- Creating custom admin panel pages without making a plugin?
- Dashboard : remove Safari navigator message
- Available resources for learning WordPress 4.7.2 from the ground up?
- WP Admin Login keeps redirecting to login
- Uncaught SyntaxError: Unexpected Token Illegal
- Newly created user role not displaying on users screen
- WordPress Admin extremely slow when other admin logged in
- Cannot create new posts or upload images using media manager
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Accessing wordpress tool in local MAMP Site
- How to remove Google fonts from wp-admin (Roboto) added by core
- Trying to login to my site redirects me to the first page
- Admin Login Checks
- Failed to load resource: the server responded with a status of 431 ()
- When installing wordpress through WP CLI mysite.com/admin not working
- Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- issue in wordpress auto delete post and redirect to another 1
- Cannot login in WordPress even after changing hash password in phpmyadmin
- How to change the publishing date of each posts?
- Admin Login page not working at all
- Post Format Status [closed]
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- Can a wordpress admin see my failed Login attempts?
- Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
- Override WordPress Core File?
- How to make the Panel // WP-Admin lighter via Mobile
- Using Image insert control in code
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Always show same size tags for Tag Cloud in WordPress Admin
- Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
- Super slow admin panel
- Admin – Handle data before creating or updating a post, page or custom post
- Add menu option to “New Post” menu in admin bar
- Add styles to wordpress admin on the Page List
- making users.php search include a specific user meta data field without messing with the SQL query itself
- WordPress Admin Toolbar Disappeared when moved site to subfolder
- wordpress wp-admin/includes/shema.php file has been modify alone
- Broken Customizer page
- Can’t access Network Admin dashboard in wp-admin
- Database problem
- Can I rename the wp-admin folder?
- Redirecting the user to the admin table area after publishing a post, getting an invalid response error?
- How can you change the admin dashboard URL without symlinking?
- Display posts with id equal to relationship value
- Why is my WordPress admin not working
- Degraded WordPress admin dashboard performance [closed]
- WordPress Localhost migration issue