plugins.php page calls add_thickbox() function that enqueues WP native thickbox script and style. It has this in documentation:
If any of the settings need to be changed, this can be done with another js
file similar to media-upload.js and theme-preview.js. That file should
require array(‘thickbox’) to ensure it is loaded after.
So there are different possible ways to approach this:
- As WP suggest create and queue .js file that will add settings you need to defaults.
- Re-register or disable native thickbox completely and replace with your own code.
Related Posts:
- Custom media upload content for inserting custom post shortcode
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to stop showing admin notice after close button has been clicked
- Is There a WordPress Hook to Filter the Edit Posts View?
- Is there any record of installed plugins in the database?
- Add content to /wp-admin/plugin-install.php admin screens
- Custom admin column disappearing when using Quick Edit [duplicate]
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- how to not show plugin in admin area
- How could I execute my plugin just in frontend (not in backend)
- Hide Theme options and Customize Admin menu
- ‘wp_login’ action hook not working with wp-login.php file
- All Users > User List > Update User Meta Field Inline
- Create tabs in admin options page from custom post type loop
- How to make multiple admin pages for one plugin?
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- How to remove a CPT Menu from the Root Admin only
- Is there a better way of handling AJAX requests in WordPress?
- I cannot include a file in my plugin settings page
- force logged in user to stay in the dashboard
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- How to properly enqueue jQuery knob on WordPress without conflict?
- WordPress Thickbox Navigation Issue in Gallery
- Admin menu hilighting wrong item for CPT
- Is admin section completely customizable in terms of styling?
- Store admin page into variable
- Add custom fields in the new and edit the site forms without touching the WP core
- Ajax in Plugins: returns the whole page
- Gutenberg: Dynamic Block – Show saved data in the editor
- Combining JS files to one script
- The Admin page isn’t showing in the sidebar of the dashboard
- warning wp session
- Submitting form to admin-post.php WordPress
- Best way to initiate a class in a WP plugin?
- What Plugins Demonstrate Great WP Plugin Development? [closed]
- Why activate_plugin is not working in register_activation_hook
- Best Practice for Referencing the Plugin Directory
- Query Posts by Custom Field ‘Price’
- fatal error get_page_permastruct()
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- How to pass JavaScript variable to PHP in wordpress widget?
- Unable to add admin notice on plugin activation
- Shortcode display outside the div
- Pass $this to function nested in another public function of the same class
- Unable to load stylesheets and scripts to plugin settings page
- Correct way to use register_activation_hook
- Licensing of freemium plugin
- Way to hook into a sidebar call to replace it with a custom sidebar
- How use %like% in sql statement wordpress
- Can I use a form in a dashboard widget?
- Retrieving plugin options value saved through setting
- How to ‘clone’ a wp plugin to make small changes
- MITM risk of not sanitizing?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- Enqueue WordPress plugin scripts below all other JS
- Is there any kind of theme on WordPress to sell my own movies?
- Suggestions on Approach to New Plugin I’m Stuck On
- How to redirect users to their profile after they successfully edit their profile
- Plugin Development Form Self Submission
- How To Extend A WordPress Plugin Without Losing Your Changes [duplicate]
- Does a blank plugin come with any overhead?
- WPDB: Update table
- Why is my custom post type not being activated on plug-in activation?
- Check filter defined or not?
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- wp_enqueue_style on template_redirect level?
- Built a second plugin but it overwrote the first one
- getting notifications about updates only in the “core” page
- Symlink a plugin in local development, works but got Debug error message – Windows 10
- Custom Post Type template for homepage
- Edit page header on a custom plugin
- How can i export and import my plugin option WordPress
- Remove all messages, when untrash a post
- Why won’t wp_enqueue_script work within any plugin file?
- Help to Create a Simple Plugin to make a post
- How to resolve warning for `unstableOnSplit` prop on a DOM element in block editor
- Rename a folder via HTML POST request
- add tags to wordpress post using REST API
- path of wp-content directory when we are on some plugin
- how to do Thematic like this website using wordpress?
- Add Custom Field to Post Pages via Plugin
- Timing issue with is_amp_endpoint()
- Continous audio play in pages
- Can I add content before post content without using the_content filter
- Why is the WordPress update_option not working in this code?
- what is the best way to create a premium plugin while also protecting your code
- hide load more button if there are no posts left to display
- Input gets deleted/overwritten after changing to different Admin Menu
- How to set the default options on an existing plugin in a WP MU new user install
- Plugin Breaking WordPress Login
- Cannot Search | Featured | Popular | Newest | Favorites in wordpress working
- WP-Snap too slow (caused by WP_Query?)
- Checking url from plugin [duplicate]
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- php include returns 1 as output with other outputs [closed]
- How to create a custom wordpress plugin for a specific functionality?
- is_user_logged_in() undefined at shutdown in plugin context
- What are Seeds? [closed]
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- Force post update with React