• To make pac_pickapic_media_buttons work in the appropriate standard format, look at how it’s done in the Unsplash WP plugin:

    add_action( 'media_buttons_context',  'usp_media_popup' );
    function usp_media_popup($context) {
    
      //our popup's title
      $title = 'Unsplash';
    
      //append the icon
      $context .= "<a href='#TB_inline?width=1200&height=800%&inlineId=popup_container'
        class='button thickbox unsplash' title='Unsplash - Click photos to upload directly to your media library'>
        <span class='dashicons dashicons-format-gallery'></span> Unsplash</a>";
    
      return $context;
    }

    https://www.ads-software.com/plugins/flickr-pick-a-picture/

  • The topic ‘Use a proper media insert button’ is closed to new replies.