我希望你说的是wp管理部门。如果是,只需将此代码放入functions.php
文件
add_action( \'load-edit.php\', \'posts_for_current_contributor\' );
function posts_for_current_contributor() {
global $user_ID;
if ( current_user_can( \'contributor\' ) ) {
if ( ! isset( $_GET[\'author\'] ) ) {
wp_redirect( add_query_arg( \'author\', $user_ID ) );
exit;
}
}
}