add_filter( 'genesis_post_info', 'prefix_remove_post_info_for_specific_authors' );
/**
* Conditionally remove post info for certain authors.
*
* @param string $post_info Genesis post info shortcodes.
* @return string
*/
function prefix_remove_post_info_for_specific_authors( $post_info ) {
// Add the author IDs to this array.
$hide_meta_for_authors = [ 4, 12, 20 ];
$current_author = get_the_author_meta( 'ID' );
if ( in_array( $current_author, $hide_meta_for_authors, true ) ) {
return '';
}
return $post_info;
}