WordPress.org

Ready to get started?Download WordPress

Forums

Adding Styles/Scripts To Specific Media-Upload Popup Tab (1 post)

  1. toneburst
    Member
    Posted 4 years ago #

    OK, I found these new hooks to add styles and scripts to the Media Upload popup page.

    admin_print_scripts-media-upload-popup
    and
    admin_print_styles-media-upload-popup
    which is an improvement on loading the styles and scripts on every single admin page.

    However, I'm now wondering if I can be even more specific, and only load styles and scripts to a specific tab in the Media Upload popup.

    My plugin creates a new Media Upload button, which loads a custom form into the popup when pressed, using the
    media_upload_{$tab}
    hook, so I'd ideally like only to load styles and script into this specific tab.

    Anyone know how I might achieve this?

    a|x

Topic Closed

This topic has been closed to new replies.

About this Topic