add_filter("attribute_escape", "myfunction", 10, 2);
function myfunction($safe_text, $text) {
return str_replace("Insert into Post", "Use this image", $text);
}
Place in your theme functions file of in a plugin file.
The first usable filter that this button hits is on the function esc_attr(). So what that code will do is find any instance of Insert into Post that is run through esc_attr() and replace it to Use this image. This code might have undesired issues elsewhere though. Maybe there is a language file method someone might know of that might be a better solution than this.
TRY:
add_filter("attribute_escape", "myfunction", 10, 2);
function myfunction($safe_text, $text) {
return str_replace(__('Insert into Post'), __('Use this image'), $text);
}
Should account for translations.
Related Posts:
- ZIP up all images displayed in a [gallery] and offer as download link
- media_handle_upload for local files?
- How do I detach images from posts?
- Replacing all attachment links in post with media file link
- upload featured image from front end using wordpress add media button
- how to grab first link in post… and of course call it
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Easy way to delete 70k posts and attached media?
- How can I create custom button in post.php
- Paginated Posts – Social Media Buttons Share First Page URL
- Too many connections to server
- Errors when uploading images in WP 3.5
- How can I get the media inside a post?
- wp-cli post create & media import issues
- It is possible to add extra button under the ‘publish’ button in the post of wordpress? and how?
- Removal of Media Gallery pictures
- How can you change all past posts’ images to link to none instead of the image file?
- Automatically attach image to post if they have the same title
- How to get the last selected media alignment setting?
- WordPress Automatic Filename Changer
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Adding an Archive button to posts page for administrators
- Remove Featured Image & All Media Uploaded to the Post
- Display a mixed list of posts and media
- How to get all inline images in post content? [duplicate]
- Inserting Media to WordPress Posts
- Delete Post but retain image of post [WP REST API]
- Site/Post preview is not working on all social media
- unable to write to the database while uploading images
- Getting image data from phone camera (MediaDevices.getUserMedia) into user post
- Go back to the exact post page number
- Post images are not displayed in media library
- Connection dropped due to file size
- Customizing individual images on posts
- Embed button for post screen
- Disable Media uploader to users
- How to get only current images of a post
- How to associate media with a post?
- WordPress Media URLs?
- Use radio buttons & checkboxes for post categories
- Bulk Attach Or Insert Media To Post Without Opening Post Editor
- How to add audio media in a post?
- How would I attach media/images to a post based on a ID stored in a each post’s custom field
- wordpress radio button on single post page
- How can to use the players from the Media Widgets in the body of a post to play audio and video files
- Bug with post titles [closed]
- Broken images after importing posts and opening in Gutenberg
- Inserting Media on New Post But Hides Previous Uploads for Editor/Contributor
- What is the proper use of guid for images in wp_posts?
- Download button under all images WordPress
- Optimize blog that serves hundred of images and videos
- Images being uploaded via WP Media are not attached even they are used by some CPT posts
- When inserting media file in a post or page, show file name under the thumbnail
- Avoiding “Missed Schedule” errors when inserting future posts
- How to get posts from a current post’s month?
- How to display two random-post sections that are each under their own category
- Show metabox value last post excerpt, title and link
- Tags on products vs tags on blog posts. An easy way to duplicate them
- Deleting post specific content at beginning of post
- Change Post Title For Specific Category
- How to display the requested post only?
- Insert media button will always add into the same tinyMCE editor
- Export all posts to import as product items
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Prevent duplicate pages from being added
- Can I style single post that are in multiple catergories?
- Show 10 latest posts only from users with contributors role
- Mailing list submission from a post that doesn’t have a form on it
- Older blog posts not showing up on WordPress
- Embedding Post Editor Into External Site
- Show single post child category from a determined parent
- How to show posts in grid style on search result page?
- My website is showing today’s date instead of published date since db migration to a new wordpress
- How can I change the date format of the revision list?
- How to mark only one post as Featured post?
- How to invoke a HTML custom button based on a HTML dropdownlist menu
- Parent menu item does not display posts when I add the sub-items
- Post data across WordPress sites
- The first post appears twice
- Find post tags words in post content and link them to tag URLs
- Check if user has avatar
- Show Posts By Custom Field
- Hide title in Merlin Theme on posts and pages only
- Get posts associated with media attachment
- Custom plugin to get related posts by category
- is_archive() not working on selected “Posts page”
- Relative Image Urls in Posts are starting from root – Not from WordPress Address (URL) at General Settings
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- Apply comment to different post (not the current post) [duplicate]
- When Author add new post change default status to pending
- Adding custom fields to the Quick Edit screen – puzzled about the column concept
- fire action when post is being edited as well as saved?
- ‘posts_per_page’ => ’10’ does not show any post
- Page not found after clicking on pagination
- Enqueue CSS on custom posts’ backend area
- How edit footer copyright info? [closed]
- How can I customize sections of the homepage layout?
- How to remove category and other tags from posts page
- How to remove slug from CPT correctly?
- How can I guide user to the next unread post within category