此代码将完成此工作。。。
<?php
add_action(\'pre_get_posts\', \'filter_posts_list\');
function filter_posts_list($query)
{
//$pagenow holds the name of the current page being viewed, we want to run our code only on edit.php (posts list)
global $pagenow;
//If the \'Editor\' is logged in, exclude \'Admin\'s posts
if(current_user_can(\'editor\') && (\'edit.php\' == $pagenow))
{
//global $query\'s set() method for excluding admin\'s posts
$query->set(\'author\', \'-1\');
}
}
有关详细说明
Read Here.