This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Link Chooser

Description

With this plugin you are able to use the core Add/edit Link dialog anywhere in your admin screens.

It can be attached to any kind of input field by giving the field the ‘wpLinkPopup’ class and setting the “data-linkvalue” attribute to any of the following values: “href”, “title”, or “target”.

Screenshots

  • Example of a dialog attached to a standard text field

FAQ

How do I call the Link Chooser dialog manually via JavaScript?

Here is a very basic example that logs the resulting link parameters to your console:

wpLinkPopup.open( function( link ) {                 console.log( 'Link URL: ', link.href );                 console.log( 'Link Target: ', link.target );                 console.log( 'Link Title: ', link.title );             }); 

How do I attach the Link Chooser to a standard input via data attribute?

<input type="text" class="wpLinkPopup" data-linkvalue="href"> 

Changelog

1.0

  • Initial deployment

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Browse the code