How to use Thickbox in Admin customizations?

How to use Thickbox in Admin customizations?

In order to use ThickBox in your own admin customizations, you need to do two things: Ensure that ThickBox is loaded by calling within your PHP. Provide a link ( HTML tag ) that triggers your custom ThickBox. Likewise, links require two components to function:

Where can I find Thickbox modal in WordPress?

ThickBox powers the modal lightboxes used in the WordPress admin, including the post editor’s “Media” button (prior to WordPress 3.5 only) and the “Details” links on the Plugin “Search Results” screen. Note: As of WordPress 3.5, the “Media” button for WordPress’s post editor no longer utilizes ThickBox, but instead uses a custom Javascript modal.

How to use Thickbox for inline content in WordPress?

When using ThickBox’s inline content feature, your content must be nested inside another element within your inline container. For example, this will work: This is my hidden content! It will appear in ThickBox when the link is clicked.

Who is the creator of the Thickbox library?

Check out the new WordPress Code Reference! WordPress makes use of a modified version of the ThickBox jQuery library originally created by Cody Lindley.

What do you need to know about Thickbox in WordPress?

When using ThickBox’s iframe feature ( ?TB_iframe=true ), you will need to craft a complete page from scratch, without relying on WordPress core. When using ThickBox’s inline content feature, your content must be nested inside another element within your inline container.

How does jQuery Thickbox work in JavaScript?

This is an UI widget written in JavaScript by Cody Lindley using jQuery library. ThickBox can be displayed based on events like onClick, onMouseDown, etc. While showing ThickBox, it disables background screen and prevents user to interact with the web page until ThickBox overlay is closed.

When does the Link appear in Thickbox?

It will appear in ThickBox when the link is clicked. View my inline content! Loading content from another source or site…