• Resolved hwtech

    (@hwtech)


    Looks like your plugin adds the “insert shortcodes” button to the media buttons (plural) “bar”. I have that bar disabled in adminimizer for most users since we are not using the media library. But I still want the inset shortcodes button available.

    Can you give me a solution? or tell me where the button code is located so I can attempt to more it into main button bar

    https://wordpress.org/plugins/shortcodes-ultimate/

Viewing 1 replies (of 1 total)
  • Thread Starter hwtech

    (@hwtech)

    Well I am answering my own question.

    I found a work around that doesn’t involve moving the “insert shortcodes” button.

    Rather than turning off media buttons bar which includes “insert shortcode” I found and commented out the code to insert the “Add Media” button.

    /*  remove Add Media button only, in  wp-admin/includes/media.php find and comment this line
    add_action( 'media_buttons', 'media_buttons' );
    */

    In general for removal of a specific button from media buttons bar if you grep for “media_buttons” you can find the add_action function and comment it out.

    from root of wp install will find all

    grep -r "media_buttons" *

    What is confusing is the the first instance of ‘media_buttons” in add_action refers to the bar, and the second to a specific button’s function. The WP folks made a bad choice and called that function ‘media_buttons`, instead of something sensible like ‘add_media’.

Viewing 1 replies (of 1 total)
  • The topic ‘moving insert shortcode button elsewhere than "media_buttons" bar’ is closed to new replies.