Even if is not very flexible filter you can use the gettex hook.
Only be aware that this filter runs for every string being translated, so can affect performarce if over-used.
To narrow the performance impact you can add it only of admin footer, and remove it just after had use it:
add_action('admin_footer', function() {
add_filter( 'gettext', 'change_caption_text', 99, 3 );
}, 9 );
function change_caption_text( $trans = NULL, $untrans = NULL, $domain = NULL ) {
if ( $untrans === 'Caption' && $domain === 'default' ) {
remove_filter( current_filter(), __FUNCTION__ );
$trans = __( ':-)', 'your-domain' );
}
return $trans;
}
Result:
Related Posts:
- Filter Media by attached page or blog post in Library
- How to add custom media library mime icons?
- How do filters and hooks really work in PHP
- Trouble understanding apply_filters()
- How many filter/action hooks are healthy?
- Filter specific shortcode output?
- Where to hook into post content?
- Valid characters for actions, hooks and filters
- How to hook into unregistering a widget instance?
- What hook do I use to edit the post statuses option in admin?
- Filter hook before create order WooCommerce
- How to disable all WordPress emails modularly and programatically?
- apply_filters() slices away needed arguments
- How to add attribute to output with wp_video_shortcode add_filter
- How to change Woocommerce breadcrumbs content?
- How to enable visual editor when editing comments on the dashboard?
- Please explain me what the do_action does
- Is it possible to Hook/Filters Attachment Creation?
- Can’t get wp_title filter working in twenty sixteen child theme
- Removing labels and tag on WordPress’s default login form
- How to trigger the core WPLANG to make automatically set a language when the theme is activated? [duplicate]
- How to hook some Unicode texts into calendar widget safely?
- How to add attributes to tag when template cannot be directly modified
- How can I add a fifth option to the alignment picker?
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- Customize user account activation message
- Conditionally call add_action depending on post_type?
- WordPress tag cloud add more links
- Error when overriding only some audio shortcode HTML output
- Why anything done on comments_array hook gets reset?
- Yoast SEO hooks overriding themselves
- Is possible dequeue/remove style from wp_footer() hook and add on wp_head() hook?
- How to call a function or method that is Namespaced using another plugin
- add filter login_redirect does not contain original requested redirect
- get_header and hook avoid normal call
- Question about how do wordpress filters/actions work
- How to center oEmbedded content
- How to add numeric slug for child page in WordPress 5.9?
- Change username before login
- How to change the order (priority) of registered filters (or actions) (e.g. for the_content)?
- How do I target a single page to modify the comment form of only that page?
- How to change the order of HTML output of a core block?
- Filter taxonomy admin pagination
- WP action/filter to modify title before header output and article output?
- How add a group by to the query used by the media library?
- Using wp_handle_upload() to Direct Specific Path by Using $overrides
- Gutenberg – Add align controls to a custom block
- Add default user field to WooCommerce checkout [closed]
- How to know what filter to use and how to use it?
- How to filter backend post list showing only posts having a shortcode
- Add custom text in the media library image meta area
- What hooks to hook onto for automatic cache clearing
- Modify Redux Framework Options in Child Theme
- How to customize category_description()?
- Upload restrictions – upload_mimes – filter: Adding multiple MIMEs for a single extension and adding multiple extensions for a single MIME type?
- How can I output all apply_filters and do_action?
- Set default value for “Additional CSS class(es)” for specific block types
- Disadvantage of using filters & hooks multiple times
- Media upload default title from file name
- Admin post list – adding an option to the date filter dropdown
- Modify message displayed on post save
- How to add a filter to the get_body_class function?
- Pass debug_backtrace() in WordPress filter
- How to override include_once pointed file using add_filter?
- Remove actions/filters that are set with create_function()
- Get The Caller (Plugin / Theme / Core) For All actions & Hook in WordPress
- comment_for() Custom fields not visible when user is logged in
- How to access page variable inside action hook
- I need to hook and change language of facebook sdk
- Use has_filter on comment_post
- Renaming wordpress login and get new password button
- Is this hook really deprecated? ( manage_{$taxonomy}_custom_column )
- Hook in a sidebar widget and add some markup
- BuddyPress – A hook available to hide custom born date on public profile view?
- Replace Data In Post & Update Meta Field Post Is Saved
- ‘manage_users_custom_column’ is a filter, but ‘manage_posts_custom_column’ is an action. Why?
- Scanning for custom embed and prefetching
- The gettext hook doesnt work on text with links
- Remove and replace woocommerce add to cart button [closed]
- Hook to change the site URL
- Modify WordPress Page Title ()
- Add an attribute to the root from functions.php with add_filter
- Would like to use hook or filters to customize email templates
- Hook to add content after date in post?
- Is it possible to assign a css id to a row in plugins list table?
- Add Index to Item in WordPress Gallery
- Remove image of srcset
- Re-order search results with posts_orderby filter and post meta value
- wp_editor customization
- Converting restricted html in comments to bbcode
- How to add a class to Buddypress avatars in the Activity stream? [closed]
- WooCommerce comments_template Filter Not Firing
- NextGEN Gallery: Adding drop-down menu widget to gallery view without modifying plugin code [closed]
- str_replace css meta tag?
- How do you disable the verification process of user email changes?
- Better way to change the default password reset url with the woocommerce one?
- Hooking/Filtering theme name to add theme directory
- Replacing text using add_filter
- Passing value from one hook to another
- Change password reqts with NO plugin without breaking resetpass link?