Hey,
When using Access Control is there a way to enable Media Upload for WYSIWYG for specific users? I have tried Googling the issue, and has found no surefire way to make it work
Hello,
In frontend, it is possible with Toolset Forms + Access plugins, for example, you can follow our document to enable access for that user roles for specific post forms:
https://toolset.com/course-lesson/controlling-access-to-front-end-forms/
See below test site:
Login URL: hidden link
Post form with custom WYSIWYG field:
hidden link
Access setting for above post form:
hidden link
enable option "Use any Media Library file when adding files to front-end Post Forms" for user role "Subscriber"
Login as a Subscriber user, username/password: test1/test1
test above post form in frontend:
hidden link
It works fine, I can see the "Add Media" button correctly.
Hi,
I have installed the two plugins, but I cannot get it to work still. Even when checking off " Use any Media Library file when adding files to front-end Post Forms", "Delete Others Posts using Toolset Forms" and "Delete Own Posts using Toolset Forms" there is no possibility for the user to add images to the WYSIWYG's. Am I missing something?
In the post form:
hidden link
section "Settings", you need to enable below two options:
- Include the Add Media button in the rich text editors from this form
- Use the WordPress Media Library manager for image, video, audio, or file fields
- When looking at it more thoroughly, I see you create a new WYSIWYG that users can upload images to. It is not possible to activate this feature on already made WYSIWYGs throughout the backend?
Let's say we have a page with a lot of recipes. These recipes are already made, but within the WYSIWYG editor the users of different roles need to insert an image or a video - to do this I still need to set up a Post Form, or how does it work? I cannot figure out how to enable it on existing editors
Update - If I create a new Post I can add / edit images in the WYSIWYG. I cannot, however, do it in the existing ones no matter how I set it up. I have sent an image of the way I tried to set it up, in order to be able to insert media files on a custom post type. This does not work sadly
I think I found the issue - and it was not even related to Forms. I've forgotten to give permission to the user within Toolset, I have attatched an image to show where (maybe you can use my minor stupidity another time, if someone else has the same issue). Thanks for the help though, I think everything works as it should now!
I do have one last question, I hope it is okay. Is there any way to hide these from the user? (the ones in the image)
You can disable Toolset buttons with filter hook "toolset_editor_add_form_buttons", for example, add below codes into your theme file "functions.php":
add_filter( 'toolset_editor_add_form_buttons', '__return_false' );