How to create a plug-in that displays a list of WordPress media and retrieves the URL of the selected image

Asked 1 years ago, Updated 1 years ago, 81 views

Various plug-ins that handle images have the ability to select images uploaded to media and obtain URLs. Please let me know if there are any sites that show how to implement them.

I'd like to add functions like "Add Media" on the post page to the plug-in.

I can now upload with add_media, but I can't find a way to know the URL of the image that has already been uploaded.I look forward to your kind cooperation.

"In the ""Add Media"" section of the original post,

Add Media

It says this, so if you write this source code directly on the plug-in, it will just go to the top of the page for some reason.How do I install this feature in my plug-in?

wordpress

2022-09-30 14:01

1 Answers

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.