Add custom css class to wp-list-table row for custom post type

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 … Read more

Filtered dropdown for author?

I don’t know if this counts as an answer, but I wanted to share in case it is helpful. It looks like you can, although there’s an important caveat in that this method needs some fixing to make work. Here’s a blog post that describes how to set up the Select2 JavaScript library to make … Read more

Woo Commerce Settings for Check-out Form [closed]

This is unlikely to be a Woocommerce setting, or if it is in the Woocommerce settings, it has been added by an additional plugin from the theme maker. Check your theme settings, or for a widget that is configured to appear on user account pages. Since the CSS style .avada_myaccount_user is being used for this … Read more

List all blogs a user can admin [duplicate]

This solution works for me: $user = get_current_user_id(); $blogs = get_blogs_user_can_admin($user); function get_blogs_user_can_admin($user) { $blogs = get_blogs_of_user( $user, true ); foreach($blogs as $key => $blog) { switch_to_blog($blog->userblog_id); if( !current_user_can(‘manage_options’) ) unset( $blogs[$key] ); restore_current_blog(); } return $blogs; }