开发者 | nareshkumar1516 |
---|---|
更新时间 | 2017年4月29日 15:22 |
PHP版本: | 3.0.1 及以上 |
WordPress版本: | 4.7.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
As in Wordpress the Administrator and the Authors have access to all the posts that are being written or published in the site, the only reason is that the contributor\'s or the other custom role users will never have access to the others posts/write ups.
We have to make up the seperate condition in the plugin\'s core file. In the (view_my_posts_alone.php) . There will be a IF condition with this line if (strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false). You have to add the OR Condition and add as much as CPT that you need. (E.g) if (strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false) || (strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php?post_type=[YOUR_CUSTOM_POST_TYPE_SLUG]' ) !== false).
Not at all, it’s a very simple and effective plugin and there are no issues with other plugins so far as we have tested it.