function add_theme_options_capability() { $role = get_role( 'administrator' ); $role->add_cap( 'edit_theme_options' ); } add_action( 'admin_init', 'add_theme_options_capability' );{"code":"rest_forbidden","message":"Sorry, you are not allowed to do that.","data":{"status":401}}