我用这个设置了一些主题选项helpful guide as a template. 我想给我的编辑器提供更新这些主题选项的选项,所以我授予edit_theme_options capability as mentioned here.
然而,当我以编辑器身份登录时,我可以看到选项页面,但当我去保存它时,我会看到“作弊嗯?”消息我检查了wp管理/选项。php页面,代码为:
if ( !current_user_can(\'manage_options\') )
wp_die(__(\'Cheatin’ uh?\'));
因此,如果没有manage\\u options功能,您似乎无法编辑选项,这很有意义。这让我想知道您如何区分常规选项和主题选项。我错过了什么吗?