The WordPress admin area uses Thickbox, which is still a jQuery plugin (jQuery is used all over the admin area). You need to enqueue the script and style (add_thickbox()
does this for you), and then all links that have class thickbox
will be converted. You need to add some URL parameters too, for example the image upload link looks like this: media-upload.php?post_id=735&type=image&TB_iframe=1&width=640&height=285
. post_id
and type
are WordPress-specific, but TB_iframe
, width
and height
are needed for Thickbox, and you should use them in your own links too.
Related Posts:
- is_plugin_active function doesn’t exist
- How can I find plugins’ slug?
- How to call a plugin function from index.php
- My custom made plugin has “a new version available” which links to unrelated plugin
- wp.media update options and force render on uploader
- Where can I find a schema of wordpress plugin core architecture?
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- WordPress Plugin Development from Scratch. How? [closed]
- How Does WordPress Uninclude/Deactivate A Plugin?
- How to fetch serialized data from wordpress options
- Passing URL parameters to WordPress pages and pretty url
- WordPress network: set themes and plugins for new blog
- How to get the custom page get_permalink?
- Plugin translations problem
- How can I add a custom meta value on file upload?
- Advanced Custom Fields into functions.php
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- Admin-ajax.php is dying “0” without processing function
- How do I register a stylesheet inside a WordPress widget?
- WordPress register_activation_hook table creation not working
- Loading class files via autoload method
- How to call bind function in wordpress actions or hooks
- I would like to use create a function in my custom plugin to tell WP to use a different header
- WordPress plugin for mail subscriptions [closed]
- Auto add content such as pages upon plugin activation?
- Escape when echoed
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- WP_Query ordering numbers as letters
- WordPress Automatic Plugin Update Renames Plugin Directory
- ‘wp_login’ action hook not working with wp-login.php file
- How to change commenter links to /user/user_id?
- Execute a plugin only on post pages
- HTML in WooCommerce settings
- Can WordPress Plugin Directory Cache Delay the Upload of Images?
- Redirecting to home page after login as custom role WordPress
- Where (or when) should I register a new taxonomy?
- Create dynamic page content from custom WordPress plugin page
- How to change custom post type pemalink Hierarcy
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Fixing WordPress’s Bug (failed to send buffer of zlib output compression) results in “White Screen of Death”
- Disable woocommerce cookies and delete cart data automatically
- How can I make my metabox appear?
- Consolidate plugin functionality into a theme
- qTranslate remove default directory from link
- Count posts by type including drafts and pending posts
- Redirect to another page using contact form 7? [closed]
- List the authors that have written posts in a category
- My custom plugin did not create db tables in database
- Separate database for a wordpress plugin
- WordPress Multisite: Programmatically Activate / Deactivate a Plugin of a Specific Blog
- remove all submenus from plugin
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Hook for page Request?
- composer not working on my plugin when i upload it to my website
- What is the WordPress approach to custom data?
- WordPress Fatal Errors [closed]
- Possible?? Pull Plugin Property Data to a Theme’s Custom Post Type
- How to render a template file using shortcode inside a plugin
- How to rewrite URL and get the values?
- Does WordPress check for updates of a plugin via plugins root folder name?
- Delete data from custom table when deleting a post
- Disable plugin visibility at the plugin directory
- Plugin is creating posts twice
- Need to add/remove group of options and display them as rows
- How to deactivate my plugin upon deactivation of NextGen
- Paypal Framework
- Widgets are not displaying in the admin panel
- How to overwrite the category template in a plugin
- Order by post_date does not work in Previous and Next post pagination
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- show wc_add notices on particular page in woo commerce custom plugin development
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- How to make WooCommerce multiple filter with custom meta fields
- How to write different events from different functions in my file to a log file in WordPress
- Create a form and have custom menu display based on user answers?
- How to make a plugin api route have permission?
- Why my multisite is this slow? (stats inside)
- Modify Plugin PHP Class in Child Theme – Correct Method
- Call function when save setting/option in custom admin page
- Problem with conditional woocommerce custom checkout field
- Plugin to Delete All Posts Monthly
- mailjet plugin – extend functionnalities and reuse api
- trying to create simple plugin to filter categories from all authors
- Change wp_mail SMTP settings for each E-Mail
- Proper Failure of Plugin Activation
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- WordPress Thumbnail add action if no thumbnail
- How can I add the custom taxonomy categories to the posts and pages?
- Creating fields in the database
- Pass strings to plugin function [closed]
- How to create a page template using custom plugin
- WordPress 3,5 and Jquery version
- contact form 7 captcha support anyother captcha plugin? [closed]
- How can I make my plugin detect if a certain theme is active?
- Plugin Block at the backend of every page or post
- Pulsing circle before the post title (Breaking news flash)
- How to provide page_template path in custom plugin using WordPress