1

I want to get source of files when I click add media. Suppose, when I select a pdf file I get

<a href="http://thedomain.com/wp-content/uploads/2017/04/myfile.pdf"rel="">myfile</a>

in text editor. Now I need to get value of "href" when I click the file from add media. Is there any built in WordPress function to get the value?

  • what have you tried? where is your research?. If there is a plugin, just read its code and get an inspiration from it – Mark Kaplun May 4 '17 at 5:43
  • I have googled several times but I haven't get any satisfactory answer. By the way, I am new at plugin development. So it is very difficult for me to read and understand all the code inside a plugin. @Mark Kaplun – Kallol Das May 4 '17 at 6:14
  • than you should ask specific questions about the things you do not understand. "design/implement a feature for me" (even if it was nice to ask such a thing for free) is just too broad for the format of the site – Mark Kaplun May 4 '17 at 6:17
  • OK then, I am changing the last line of my question. – Kallol Das May 4 '17 at 7:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.