I want to hide the link options button shown in tinymce plugin (wpload), the one that shows up when clicking “Link” button..

Is there any call like

tinymce.PluginManager.get(‘pluginName’).removeButton(…) ?

More specifically I want to remove Link Options from wplink plugin tinymce version 4.5.6. I saw this call in the plugin code, wonder how I can remove it from my custom WP plugin (dont want to hack the wplink plugin itself)?

            editor.addButton( 'wp_link_advanced', {
                    tooltip: 'Link options',
                    icon: 'dashicon dashicons-admin-generic',
                    onclick: function() {
                            if ( typeof window.wpLink !== 'undefined' ) {
            ....

Read more here: Remove button added by a tinymce plugin


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: