WordPress.org

Support

Support » Plugins and Hacks » Adding Styles/Scripts To Specific Media-Upload Popup Tab

Adding Styles/Scripts To Specific Media-Upload Popup Tab

  • 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

  • The topic ‘Adding Styles/Scripts To Specific Media-Upload Popup Tab’ is closed to new replies.