WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image URL to Editor (3 posts)

  1. noelgreen
    Member
    Posted 6 years ago #

    Hey all,
    I'm wanting to get rid of all the "Thumbnail, Full size, Title, etc." options in my image uploader and only have the "Send to Editor" option.

    When that is clicked I only want the URL of the image to be sent to the editor... no "<a href" info or anything else... just the image URL beginning with "http://" and ending with ".jpg" or ".gif" or whatever.

    Is this doable?
    Or, how would I do this?

    Thanks!

  2. noelgreen
    Member
    Posted 6 years ago #

    Okay, I figured out how to edit the upload-functions.php file in the wp-admin folder and make it so that the "Send to Editor" only sends the URL like I was wanting... but, now I want to remove all the "Thumbnail," "Full Size," ect. options so that there is JUST a "Send to editor" button.

    I found the array for those in the script-loader.php file from the wp-includes folder, but when I remove them from there they still appear only they all say "undefined".

    Anyone know how to remove those?

  3. noelgreen
    Member
    Posted 6 years ago #

    Found that too! :)

    It is in the upload.js file in the wp-admin folder.
    Took a while to figure out what was what (being a PHP no-b) but I got it!

Topic Closed

This topic has been closed to new replies.

About this Topic