How to enforce authentication for all resources?

You should define which resources you want to protect. I think you have such choices: 1) Protect whole site 2) Protect only posts (without resources) 3) Protect posts & all resources (but only uploads, not wp-content! otherwise you will break your themes/plugins) So, as you say you need 3rd way. In such case, you should … Read more

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