解决方案1(不是一个好主意):
add_users_page(
_x( $this->page_title, "page_title", $this->text_domain ),
_x( $this->menu_title, "menu_title", $this->text_domain ),
$this->capability,
"edit.php?post_type=my-post-type"
);
注意:此代码在类中使用
当你在页面上时,菜单可能会有一些错误,这对于特定页面来说是个好主意
解决方案2:
register_post_type(
\'my-post-type\',
array(
\'show_in_menu\' => "users.php"
)
);