我知道为时已晚,但我希望这对将来的人有帮助。你可以在posts\\u where中添加一个过滤器,并添加一个regexp将其限制在第一个字母。Wordpress documentation for posts_where
add_filter( \'posts_where\' , \'posts_where\' );
function posts_where( $where ) {
if( is_admin() ) {
global $wpdb;
if ( isset( $_GET[\'author_restrict_posts\'] ) && !empty( $_GET[\'author_restrict_posts\'] ) && intval( $_GET[\'author_restrict_posts\'] ) != 0 ) {
$author = intval( $_GET[\'author_restrict_posts\'] );
$where .= " AND ID IN (SELECT object_id FROM {$wpdb->term_relationships} WHERE term_taxonomy_id=$author )";
}
}
return $where;
}