Answer the question
In order to leave comments, you need to log in
How to make a simple image or video upload in wp_editor?
Why does the library always open when I click the add media button? Is it possible to remove it somehow, so that when I press to add a media file, the file selection on my computer immediately opens, without a library?
Answer the question
In order to leave comments, you need to log in
Just don't do it like that. You will have to write separate logic that checks the file, uploads and registers it in wp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question