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
- Use category base slug in posts’ permalink
- Number of post for a WordPress archive page
- Different permalink for posts and authors
- Post Format Archive template name for theme folder?
- strip only specific tags (like ), but keep other tags (like )
- How to disable edit post option after period of time?
- Get post from custom REST endpoint in Gutenberg
- How can I specify a category post on my home page
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- WordPress won’t save any post
- Permalink Settings: optional settings doesn’t apply to editor
- Limit number of posts a user can make per minute?
- How can I remove “”
- Display posts from #6 to #20 on archive page
- Best way of deletion of old posts [closed]
- How to inject a class for all option elements from wp_get_archives()?
- Add blogs to “Blogs i Follow” sidebar [closed]
- Exclude category from
- How to : pagination in 3 different custom loops on the same page
- Change Post Status From Front End
- Blog posts not displaying
- Customizing Comments on Posts
- Make post_content and other custom fields required
- How do I Redirect a WordPress Page?
- Random posts from a pool of posts
- Post Image not displaying in category view
- Edit multiple custom post types while saving a new or edited post
- Moving the blog page
- Is it possible to lock all new and existing WordPress posts to one specific author?
- How to style archive post titles… but only those posts who have comments?
- Showing recent post of category in page
- How do I allow certain users to make a certain type of post?
- How to limit post (Exception pages) for current user in each role in front end?
- How to pull latest posts from a specific category
- call to jquery ajax failing with 500 error when passing extra data field
- How to create a button to filter posts (list) by meta value
- How to make certain posts not appear on the main page, but instead only a newly created category(in the menu section)
- Double loop output
- AJAX load more posts not using correct category and repeating the same few posts
- Post by Email – Shortcode for Language? [closed]
- Difficulty in creating and handling a complex post type
- Display only current page -> posts tags in page
- Formatting error while publishing theblog from Microsoft Word
- Create post from form with image
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- query_posts different amount of posts per page [duplicate]
- WordPress Post Updating is Not Working