There is a filter for the html of the ‘postimagediv’ called ‘admin_post_thumbnail_html’.
There may be more elegant ways, but this works:
add_filter('admin_post_thumbnail_html', 'wpse61502_change_thumbnail_link');
function wpse61502_change_thumbnail_link($content)
{
return str_replace('media-upload.php?', 'media-upload.php?is_thumbnail=true&', $content);
}
In your plugin / script check the querystring:
if ( isset($_GET['is_thumbnail']) )
{
// do stuff, actions, enqueue, ...
}
Related Posts:
- Disable image attachment links
- Uploading Images in the Link Manager
- How to remove items from +New admin menu?
- How to show an error message after publishing a post?
- Restrict access to admin but allow admin_post hook
- How to get the password and username of the add new user form (admin back end) in wordpress
- Adding body class to login page?
- How to change how long items are kept in the trash?
- Get Stylesheet To Showup in WP Admin Panel Editor
- Admin first hook that outputs HTML?
- Display $pagenow error notice on all admin pages
- Can I edit the wp_post > post_content right before its inserted/updated?
- is_admin() not working when updating a post in the admin panel
- Can I hook into wp_update_core outside of the admin?
- ‘wp’ hook supposed to trigger when editing a post?
- Restrict access to admin-post.php
- How do I add something to the “Edit Tag” page in wp-admin?
- Change maxlength of link_description in dashbord link section?
- Add HTML to custom post type edit page
- admin_post_nopriv_{$action} is secure?
- plugin: ‘init’ hook, check if we’re not in admin
- Change CPT Edit Target Link for Admin List
- Changing Admin Menu Labels
- Is there ANY way to remove comments function and section totally?
- How to display a static HTML page while setting up a WordPress site?
- How can I uninstall a language?
- js error on post editing page
- How to influence the information displayed on widget inside wp-admin
- How to add a custom metabox to the Menu Management admin screen?
- How to change the wording in wp-admin back-end?
- How to make ajax call in wordpress in right way?
- Delete Post From front Page ( With Wp-admin restriction )
- Bulk Delete Users Error uri too large
- Add column to pages table
- Change the Return URL from the Customizer
- Where can I edit Admin Panel Page file
- WordPress Error establishing a database connection For Admin login only
- Replace wordpress login logo with custom text
- Failed to load resource admin-ajax.php
- Custom WordPress Dashboard for Specific user role
- Why are my frontend theme styles bleeding into the backend?
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- Where are the admin notifications stored?
- How to sort comments in the “edit-comments.php” table based on a comment meta field?
- I set wp_set_auth_cookie but wp_validate_auth_cookie returns false
- Why do I keep losing links when I switch to visual editor in WordPress
- How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library
- New wordpress install, what are the reasons the “Install Themes” tab is missing?
- Customise WordPress Update Notice in wp-admin backend area
- wp_comments table really big casuing /wp-admin/edit-comments.php to slowly load
- I get a 404 page on /wp-admin but not wp-login but as soon as I login I get a 404 again [closed]
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- password reset link being sent as HTTP?
- Restrict Author role to only 3 wp-admin pages
- Post.php is blocked by server? How to unblock? [closed]
- How to fix ‘WordPress redirection loop problem in wp-login.php page’?
- WP-Admin shows (1) update but there is no update for plugin, theme or WordPress
- Do I have to face security problems if I changing default role to Contributor
- wp-admin remove part of the url
- wp-admin 302 redirects
- Grabbing how Many Posts by Month for a Dashboard Widget
- How to use underscore.js in WordPress Admin
- Detect Featured Image remove while editing post in wp-admin (client-side)
- Cannot log in to the admin, no error message [closed]
- Need help for WordPress User Session Management?
- meta box on new admin page
- Create reviews and star-rating for user accounts in wp-admin [closed]
- Disable Admin CP authentication (or auto login)
- can’t access backend while frontend works perfect
- Admin top level menu, pointing to an external url
- Change of IP Address
- Developer/Designer asking for admin access
- WordPress Child theme fails to override parent theme css
- How to change home page only in WordPress
- User Roles: How to hide a plugin from showing in WP-Admin?
- Too Many Redirects – WP-Admin Only
- Admin menu success message
- Pages section (only) not loading after publishing large number of pages
- Wp-admin widgets have no title texts
- wp-admin 503 error
- Admin Page access
- WP site after login keeps redirecting to looped url [closed]
- Locked out of site admin after change of URL
- Login issue with subdomain installs
- Redirect from wp-admin back to page
- Edit “Not Available” Page
- admin-ajax and external service interaction
- Add admin page to the top of the admin panel
- Admin page changes the $_POST data
- site identity will not update [closed]
- Reestablishing Automatic and Secure FTP Connection, Primary Domain Change
- trying to locate the correct file to edit my internal linking anchor tags
- str_replace in wp-admin
- Admin area is not loading properly
- Using meta_query in add_query_arg
- Is it possible to change the images source that are shown in the admin side?
- Using query string on edit CPT page
- How to Filter in the “Add Media Popup” to show only “unattached” Media
- All of my WordPress sites have Bold Open Sans
- Degraded WordPress admin dashboard performance [closed]