我想从wordpress仪表板中删除类别(编辑/删除)按钮(I want to remove category (edit/delete) buttons from wordpress dashboard)
如果没有得到我的意思,这里是详细信息:
在类别部分的wordpress仪表板(wp-admin)中,如果将鼠标悬停在某个类别上,则该类别下方会显示一些按钮。
这些按钮是(编辑,快速编辑和删除)
简单地说,我希望我的用户添加类别,但我不希望他们编辑或删除类别。
所以,我想摆脱这些按钮(删除这些按钮)。
我在wordpress文件中搜索但找不到任何东西:(
有帮助吗?
If didn't get what I mean, here is the details:
In wordpress dashboard (wp-admin) in category section, if you hover over a category there's some buttons appears down the category.
these buttons are (edit, quick edit and delete)
Simply, I want my users to add categories but I don't want them to edit or delete categories.
So, I want to get rid of these buttons (removing these buttons).
I have searched in wordpress files but couldn't find anything :(
Any help guys?
原文:https://stackoverflow.com/questions/31545522
最满意答案
我想你必须创建一个REST服务才能使用Google Drive API ,当然你也必须管理身份验证 。
I'd imagine you'd have to create a REST service to make use of the Google Drive API, of course you'd have to manage authentication as well.
相关问答
更多-
如何使用Javascript将普通/文本文件上传到谷歌驱动器?(How to upload a plain/text file to google drive using Javascript?)[2021-06-14]
在深入研究前两个问题( 这里和这里 )后,我找到了一个解决方案,部分结合了这些问题: var createTxtFile = function(name,text,parentId) { var auth_token = $rootScope.accessToken; const boundary = '-------314159265358979323846'; const delimiter = "\r\n--" + boundary + "\r\n"; const c ... -
除了评论之外,您还可以允许匿名用户通过您的应用上传到您的Google云端硬盘帐户。 仅限一次,您需要自己进行身份验证,然后授权您的应用使用离线访问权限访问您的云端硬盘帐户。 这将创建一个刷新令牌。 将刷新令牌存储在服务器中的某个位置。 您可以通过编写一些只执行一次的代码来执行此操作,也可以使用Oauth2 Playground。 然后,匿名用户可以将文件上传到您的应用,然后您的应用可以使用存储的刷新令牌将该文件上传到您的Google云端硬盘,以请求访问令牌。 另一种(可能更好的)方法是使用服务帐户。 Des ...
-
我们可以使用服务帐户将文件上传到公司帐户。 请参阅链接: https : //developers.google.com/accounts/docs/OAuth2ServiceAccount 服务帐户有其自身的局限性。 有关替代方法,请参阅此链接: 如何在无需用户干预的情况下授权应用程序(Web或已安装)? (规范?) We can use Service accounts to upload file to company account. refere the link : https://develo ...
-
我很确定您使用的是v2 Google Drive API代码,但是您要包含v3 gradle / jar文件,反之亦然,因为它提供错误的唯一功能是insert,setType ...在版本3中已更改以创建,setName ... I am pretty sure you are using v2 Google Drive API code but you are including the v3 gradle/ jar files or vice versa, because the only functi ...
-
这是我的解决方案。 需要使用以下范围进行授权: https : //www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/drive.appdata 上传和更新文件。 function backupGoogleDrive(accessToken) { var request = gapi.client.request({ 'path': "/drive/v2/files?q=title+%3D+'" + back ...
-
使用javascript将服务器上的文件上传到google驱动器(Upload file on server to google drive using javascript)[2022-07-27]
有许多使用XMLHttpRequest将文件从GET请求下载到二进制字符串的示例。 例如,像这一个 。 您可以将读取文件的部分替换为二进制字符串reader.readAsBinaryString(fileData); 这段代码。 There are many examples of downloading a file from GET request to binary string using XMLHttpRequest. For example, like this one. You can rep ... -
如何使用Python使用驱动器API将文件上传到谷歌驱动器?(How do I upload file to google drive using drive API using python?)[2023-08-19]
为了访问私人用户数据,您需要获得用户的许可。 未经我的许可,您无法上传到我的云端硬盘帐户。 用户名密码 被称为基本身份验证 ,并在2015年使用谷歌关闭的登录名和密码。 现在为了访问私人用户数据,您需要使用Oauth2。 我建议从Python快速入门开始 """ Shows basic usage of the Drive v3 API. Creates a Drive v3 API service and prints the names and ids of the last 10 files the ... -
我想你必须创建一个REST服务才能使用Google Drive API ,当然你也必须管理身份验证 。 I'd imagine you'd have to create a REST service to make use of the Google Drive API, of course you'd have to manage authentication as well.
-
您没有正确构建多部分主体。 有关示例,请参阅https://developers.google.com/drive/web/manage-uploads#multipart POST /upload/drive/v2/files?uploadType=multipart HTTP/1.1 Host: www.googleapis.com Authorization: Bearer your_auth_token Content-Type: multipart/related; boundary="foo_b ...
-
使用javascript从任何人上传文件到我的谷歌驱动器(Upload file to my google drive from anyone using javascript)[2022-07-26]
简单的回答是你不能使用JavaScript。 原因是JavaScript与OAuth2一起使用,这要求您要求用户访问您的数据。 如果你想让它访问你的驱动器帐户,你必须将refreshtoken保存到某个地方,然后在加载脚本时发送它。 JavaScript是客户端支持的,因此任何检查页面上代码的人都可以获得他们需要的所有信息,以便他们使用您的驱动器帐户执行任何操作。 安全明智,这是一个坏主意。 我建议你研究使用像PHP这样的服务器端脚本语言。 您可能想要考虑一个服务帐户 。 注意:所有内容都归服务帐户所有,因 ...