Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认功能是“manage_options”。您如何自定义功能,以便我可以将其添加到我想要的任何用户角色?
看起来您可以在初始化时编辑 PMXI_Plugin 的静态属性
add_action('init', function () { PMXI_Plugin::$capabilities = 'wpallimport_manage'; });