Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I was looking for a tutorial on adding options to the "Edit Gallery" page. In the hopes of adding some GUI inputs that would result in the generated [gallery] short-code having custom attributes.

I found this question. I was hoping that taking a look at how the page and options are rendered, and were the request "insert gallery" is sent would help me understand the issue.

So again the questions are :

1) Where in the WordPress core can I see how the "Edit Gallery" page and its settings are rendered?

2) What file / function handles the "insert gallery" request ?

I created a separate questions so someone could get some easy points : )

Thank you.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Browsing through the code at http://core.trac.wordpress.org/, it appears that the file you're looking for is /wp-includes/media.php. I wouldn't recommend editing core files, though; any updates you make would be clobbered in the next upgrade.

share|improve this answer
    
Thank you. I don't want to edit core files. I just want to see how it works. –  Chris Mar 28 '13 at 16:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.