Hide author info in single posts by certain users
No, there’s no need to use wp_set_current_user(). I was wondering how to fire wp_head action if single post by certain users (either by user ID or username)? You can use $post->post_author to get the ID of the author of the post, and put the user ID list in an array, then just do in_array() to … Read more