Finally got a solution. Founded in WordPress Documentation
add_filter('post_class', 'set_row_post_class', 10,3);
function set_row_post_class($classes, $class, $post_id){
if (!is_admin()) { //make sure we are in the dashboard
return $classes;
}
$screen = get_current_screen(); //verify which page we're on
if ('my-custom-type' != $screen->post_type && 'edit' != $screen->base) {
return $classes;
}
//check if some meta field is set
$profile_incomplete = get_post_meta($post_id, 'profile_incomplete', true);
if ('yes' == $profile_incomplete) {
$classes[] = 'profile_incomplete'; //add a custom class to highlight this row in the table
}
// Return the array
return $classes;
}
Related Posts:
- What are the standard admin CSS id/class tags?
- how to know if admin is in edit page or post [duplicate]
- How to remove entire admin menu?
- The website cannot display the page
- Set Default Admin Colour For All Users
- How can I target WordPress 3.8 new interface MP6 with CSS?
- Settings API – easiest way of validating checkboxes?
- initial sort order for a sortable custom column in admin
- Uploading files in admin panel?
- Redirect Admin User in Dashboard
- Read only capability for custom post in admin area
- How can ‘admin_email’ be set?
- How to change WordPress default strings?
- Remove ability to access certain admin menus
- Gutenberg “Add Block” button is not active (greyed out), cannot add new blocks
- How To View Site from Non-Logged-In User’s Perspective
- Conditional check for front-end which includes ajax
- Hide update messages from non-admin users?
- Daily notices of failed login attempts for non-existent admin user
- Reorder plugin items in the admin menu
- Wrong url in sortable column headers & pagination in the admin, when behind a proxy
- Reference external file as a function
- “Automatically add new top-level pages” Default
- Is it possible to hook AJAX to UPDATE-button?
- Get email address of type Administrator
- Different color admin bars for dev, staging and production
- Check if user is logged in else login page
- Which hook for processing plugin page form data?
- Calling a shortcode in the backend
- Add tabbed menu to admin page
- Is there a way to have admins that are logged in to wordpress not have to enter the password for password protected pages while browsing the website?
- WYSIWYG – Getting the “link” button from HTML mode in Visual mode
- Error thrown. Cannot create references to/from string offsets
- How to receive security update notification email?
- Include admins in author drop-down on edit post screen
- How can I restore admin capabilities?
- How to restrict wp-admin and prevent upload errors
- Adding another “Add Post” button to admin
- Admin page redirect to another admin page
- How to determine if an admin is logged in outside the loop
- What determines whether admin toolbar is shown to a logged-in user?
- Adding text in more than one language (at the same time)
- How to get view count of every page on site and add that (increasing) number to Dashboard Widget
- Restrict function call to page load but not ajax call
- How do I remove All and Published if not admin?
- How to disable https from wordpress site?
- Fatal error: Exception thrown without a stack frame in Unknown on line 0
- Apply permissions per post
- Where should I hook into admin?
- Settings API not saving values to database
- Dashboard menu missing
- How to remove wp panel for users
- Unable to upload image using the standard uploader in the WP admin (v4.3)
- Admin role not really admin
- Fixed layout for admin section
- Featured image on post edit page not loading over HTTPS
- Copying WordPress site, HOW about the DB connection?
- How do I diagnose a plugin resource 404?
- Add menu item to edit specific page
- Filter WooCommerce Orders
- Post editor is 89953px tall. How to fix?
- Does an administrator access allow someone to access to the WordPress database?
- Change Name of Category Heading in New Post
- Page can’t hand request – HTTP ERROR 500 – when updating something
- How to change the User name and Password of admin account
- How to make sure your admin doesn’t hi-jack you site?
- Admin bar is disabled in front
- Load stylesheet on custom admin submenu page
- Disable login on multisite web sites
- Other than save_post any other actions on add / edit post screen?
- Add JavaScript in admin in custom plugin [duplicate]
- Display an image of selected template in admin to aid user when using complex templates
- Remove iPhone detection on login page
- Dashboard RSS Widget Overhaul
- Possible to show in media library if images are being used as featured images?
- Give admin_menu permission to specific users
- How can all E-mails be sent with BCC copy to Admin?
- How To Create WordPress Dashboard Item
- Can I retrieve Published changes when changes have been Saved but not Published in WordPress Semplice?
- Login to admin by frontend form?
- Doesn’t call user information to include “wp-load.php” in an external php file
- How do I add an admin table to my page?
- How to save edited post when submitting form
- Show admin bar to editors with Buddypres
- Redirect non-admin after login, and in url – /admin
- Admin hook after editing an image?
- Form submit in admin does not set is_admin() true
- Get the selected posts IDs to use in bulk edit AJAX call
- Disabling “View” mentions from backend?
- Handle logo text color from admin section
- User interfaces living in the Admin “back end” area
- Capability to read/edit page in wp-admin only for administrators
- blank white page in admin, white space hunting?
- WordPress blog code format
- htaccess and htpasswd
- Exclude admin from the top commenters list [duplicate]
- Troubleshooting white screen when editing specific posts
- send information from the thickbox image uploader second tab
- Private messaging plugins + custom admin
- What Role to assign remote site developer?