我是靠谱客的博主 震动煎蛋,最近开发中收集的这篇文章主要介绍wordpress上传限制_如何在WordPress中组织用户的媒体上传,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

wordpress上传限制

Have you ever wanted to keep media files uploaded by users separate from other users?

您是否曾经想过将用户上传的媒体文件与其他用户分开?

When running a multi-author website, you might want your authors to only have access to the media files they’ve uploaded. This can be helpful for organization and productivity purposes.

在运行多作者网站时,您可能希望您的作者只能访问他们上载的媒体文件。 这对于组织和生产力目的很有帮助。

In this article, we’ll show you how to organize media uploads by users in WordPress.

在本文中,我们将向您展示如何组织WordPress用户的媒体上传。

How to organize media uploads by users in WordPress

为什么要限制作者对媒体上载的访问? (Why Restrict Author Access to Media Uploads?)

Managing a proper editorial workflow is one of the biggest challenges for multi-author WordPress sites.

管理适当的编辑工作流程是多作者WordPress网站面临的最大挑战之一。

One thing that bothers many site owners is that authors can see the media uploads of other authors and contributors.

困扰许多网站所有者的一件事是,作者可以看到其他作者和贡献者的媒体上载内容。

This becomes a privacy concern for some site owners. For instance, if an administrator is working on a new product or idea, other authors can see it before it goes public.

对于某些网站所有者来说,这成为隐私问题。 例如,如果管理员正在研究新产品或新想法,则其他作者可以在新产品或新想法发布之前看到它。

That being said, let’s take a look at how to restrict who can see media uploads inside your WordPress admin area.

话虽如此,让我们来看看如何限制谁可以在WordPress管理区域内看到媒体上传。

在WordPress中组织用户的媒体上传 (Organizing Media Uploads by Users in WordPress)

The first thing you need to do is install and activate the WP Users Media plugin. For more details, see our guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活WP Users Media插件。 有关更多详细信息,请参见有关如何安装WordPress插件的指南 。

Upon activation, the plugin automatically restricts each user’s access to their own media uploads while allowing site administrator to view all uploads.

激活后,该插件会自动限制每个用户对其自己的媒体上载的访问权限,同时允许站点管理员查看所有上载。

However, you do have the option to customize settings and allow custom user roles to access all media uploads. For instance, you may want to allow Editors to view all media uploads while restricting Authors to their own uploads.

但是,您确实可以选择自定义设置,并允许自定义用户角色访问所有媒体上载。 例如,您可能希望允许编辑者查看所有媒体上载,同时限制作者自己的上载。

To fine-tune these settings, you need to head over to Settings » WP Users Media page to configure which attachments the user can access.

要微调这些设置,您需要转到设置»WP Users Media页面以配置用户可以访问的附件。

In this case, we want to select the the following option: ‘Enable so Author can only view their own attachments.’ Here’s what you’ll see:

在这种情况下,我们要选择以下选项:“启用,以便作者只能查看自己的附件。” 这是您将看到的:

Enable authors to see attachments

Now, to view this in action, you can create two new user accounts and give them the ‘Author‘ role. Next, log in to WordPress with each of the two accounts and upload some images.

现在,要查看实际操作,您可以创建两个新的用户帐户,并为其赋予“ 作者 ”角色。 接下来,使用两个帐户分别登录WordPress并上传一些图像。

You’ll notice that the media library will only show you the images uploaded by that particular user. For example, we created two users named Sam and Tina.

您会注意到,媒体库将仅向您显示该特定用户上传的图像。 例如,我们创建了两个名为Sam和Tina的用户。

We uploaded three images using Sam’s account, and three images using Tina’s account.

我们使用Sam的帐户上传了三张图片,使用Tina的帐户上传了三张图片。

This is how Tina’s account shows the media library:

这是Tina的帐户显示媒体库的方式:

Tina's media library

This is how Sam’s account shows the media library:

这是Sam的帐户显示媒体库的方式:

Sam's media library

And lastly, this is how a site administrator sees the media library.

最后,这是站点管理员查看媒体库的方式。

Admin's; library view

When uploading new images, your users will only be able to select their own uploaded images from the Media Library.

上载新图像时,您的用户只能从媒体库中选择自己的上载图像。

Insert media into a post

We hope this article helped you better organize media uploads by users on your WordPress site. If you come across any issues while uploading images, then check out our ultimate guide on fixing common image issues in WordPress.

我们希望本文能帮助您更好地组织用户在WordPress网站上上传的媒体。 如果您在上传图片时遇到任何问题,请查看有关修复WordPress中常见图片问题的最终指南。

You may also want to see our comprehensive list of must have WordPress plugins for all websites.

您可能还想查看我们所有网站必须具有WordPress插件的完整列表。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-organize-media-uploads-by-users-in-wordpress/

wordpress上传限制

最后

以上就是震动煎蛋为你收集整理的wordpress上传限制_如何在WordPress中组织用户的媒体上传的全部内容,希望文章能够帮你解决wordpress上传限制_如何在WordPress中组织用户的媒体上传所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(32)

评论列表共有 0 条评论

立即
投稿
返回
顶部