Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/293.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将Wordpress数据库访问限制为某些角色_Php_Mysql_Database_Wordpress_Permissions - Fatal编程技术网

Php 将Wordpress数据库访问限制为某些角色

Php 将Wordpress数据库访问限制为某些角色,php,mysql,database,wordpress,permissions,Php,Mysql,Database,Wordpress,Permissions,我正在创建一个插件,并编写了一些自定义数据库表,我只希望某些角色能够访问这些表。例如,订阅者应仅对表A具有访问权限(读、写、编辑、删除),而不对表B或表C具有访问权限 有没有办法限制哪些角色可以访问某些数据库表?如果没有,还有什么选择 谢谢。在角色检查中包装db调用。在角色检查中包装db调用。

我正在创建一个插件,并编写了一些自定义数据库表,我只希望某些角色能够访问这些表。例如,订阅者应仅对表A具有访问权限(读、写、编辑、删除),而不对表B或表C具有访问权限

有没有办法限制哪些角色可以访问某些数据库表?如果没有,还有什么选择


谢谢。

在角色检查中包装db调用。在角色检查中包装db调用。