Media upload finished hook

it’s a longshot but, add_attachment hook, actually fires after the first file finished uploading: add_action(‘add_attachment’,’redirect_uploader_flow’); i’m using it to load a custom interface for resizing a Image loading in the current TB window: jQuery(“#TB_iframeContent”,window.parent.document).attr(‘src’,”<?php echo get_window_url($id) ?>”); the main problem is that it will break multiple file uploads

ThickBox replacement

For what it’s worth, I have integrated the new media uploader in a plugin which allows the admin to select or upload media from the standard media dialog instead of having to copy/paste URLs, and it seems to work well. I posted an answer here that might be what you’re looking for. Tom McFarlin has … Read more

Open a Thickbox with content trough AJAX

The second parameter for tb_show is the URL, so you’ll want to use something like.. <?php $ajax_url = add_query_arg( array( ‘action’ => ‘getTheContent’, ‘query_var1’ => ‘value1’, ‘query_var2’ => ‘value2’ ), admin_url( ‘admin-ajax.php’ ) ); ?> tb_show(tag, ‘<?php echo $ajax_url; ?>’ ); I’d guess you need to pass the action and any additional query vars manually(as … Read more

Custom media upload content for inserting custom post shortcode

Have a look at my guide here – http://www.wpexplorer.com/wordpress-tinymce-tweaks/ – so you can see how to create a popup window where you can select your options than insert a shortcode. If you download my Free Symple Shortcodes plugin you can see a live implementation as well. Instead of having the user select the posts to … Read more