You could use the gettext filter. See the examples here https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext. In your filter you will add code to check
- IF it’s the exact text you want to change
- then if the users meta value is what you are looking for
the return the revised text.
Else return the passed text unchanged.
Related Posts:
- How to get attachment id as soon as it is uploaded through media uploader in jquery?
- Add tinymce buttons to caption textarea in media uploader
- How to handle multiple instance of “send_to_editor” js function
- Modify Custom Field in Media Library using JavaScript
- Extend 3.5 media uploader plugin to change button name
- WP3.5 Media Uploader – how to make it accept multiple images?
- Restrict file types in the uploader of a wp.media frame
- Script won’t execute in the media manager
- WP Media uploader loading only once in options page
- Is it possible to hide media details sidebar when wp.media popup is being opened?
- Getting all URLs of uploaded images using media uploader
- Switch between tabs on “Insert Media” dialog
- Uppload image from another source wp.media
- Limit filetype and wp media
- How to locate the js code and php code for certain function?
- wordpress file upload from direct directory not working
- Why does my media selection script write to ONLY the first input field?
- Add jQuery function to media button
- Edit Image/Image Details – Replace button missing
- upload_max_filesize is set to 64 MB already but WordPress is still showing 2 MB
- WP Customizer compare and set a value via javascript
- Callback After WordPress Customizer Complete Loading
- “JQMIGRATE: Migrate is Installed” How do I find the problem code? [duplicate]
- Referrer URL with jQuery or Javascript – Cache & Referrer URL Issue
- Why doesn’t jQuery use $, and how can I get it do so (GLOBALLY)?
- PHP error when trying to upload .mp3 files via Media Library [closed]
- Create special WordPress slideshow with “jquery.cycle.all.js”
- Using Foundation 5 in WordPress Administration Area
- I have an old version of jQuery showing up. How do I figure out where it is coming from?
- Plugin Scripts no loading on options page
- Close Fancybox, sumbit form data and redirect
- How do I include javascript/jquery image resizing with wordpress?
- Get images attached to a specific page
- A link (not in the post) to download a specific PDF file
- Ajax Validation for reCaptcha
- How to enque js script in footer that are not in .js file?
- Loading scripts on a single page plants the script in the footer
- Adding URL of PDF from Thickbox in a Meta Box
- Properly embed javascript into WP (using function.php) – doesn’t work?
- Search input area autogrow – how?
- Using jquery and javascript in WordPress
- Nested Gallery Shortcode INTERMITTENTLY working
- Migrating media files (documents only) to a fresh install and maintaining the same directory structure
- How does wordpress handle media files?
- wp.media issue with selected image
- Is there a way in WordPress to convert images to WebP without a plugin?
- WordPress media upload issue could not insert attachment into the database
- Disable Cloudflare Rocket Loader for jQuery javascript and make it load first
- Get value of selected option in select field in a WordPress form
- How to keep HTML form field that is conditional hidden with javasript hidden after page reload?
- Accessing javascript in multiple files [closed]
- Thumbnail images missing in WP media library
- How to disable drag-and-drop upload function in Media Library?
- Unable to get my javascript to work on my website – what am I doing wrong?
- Issues loading Jquery on WordPress website
- Required radio button does not validate in form, when clicked through Javascript/jQuery
- jQuery selectable() function won’t work in wordpress
- oEmbed Video in Modal
- Custom AJAX form not working async
- Multiple Media uploader output to input
- Open Media Uploader Link in single post or page
- AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0
- Remove Media File Items From Server That Do Not Exist in Media Library
- Using WP functions inside javascript
- How to add external remote JS source to Gravity Forms?
- Blur.js with WordPress – Enqueued, but server not finding file
- Is it OK combined wp-include js, jquery, css? [closed]
- Including Older Version of jQuery for IE7/IE8
- Add SWF file to wordpress through custom template
- Parse wordpress blog data using json api and ajax
- Screen Options JavaScript Code
- Problem adding MP3 attachments to a jPlayer playlist
- Is there some jQuery conflict here?
- How To Include JavaScript Files Only In Single Posts?
- wordpress before or after javascript problem
- What if I have a large file on the server that I want the wp library to have?
- Theme has superfish – how to add supersubs?
- Ajax page load in wordpress the right way?
- Jquery not working
- A carousel slideshow plugin in JavaScript
- Best way to add some custom javascript using jquery to a child theme
- JS behavior differs depending on page tree [closed]
- Uploaded images result in a file url with full path on disk appended
- Hook on file upload
- wp not defined at wp.Uploader.prototype
- Using WP-CLI “wp media import” to sync files to the media library
- wp.media gallery collection sometimes undefined
- Efficient way to move media folder to another folder
- WordPress append -1 to the image name
- Make inline uploader (plupload) on options page upload to a specific folder
- Can’t upload format files on media library
- How to add HTML into error message
- unsharp thumbnails after uploading image
- I am trying to Implement a Code that is Working in my previous page but not working in WordPress for some reason
- Images not displaying on site or media library
- How to use $ with externally loaded javascript
- Add JQuery As Code Snippet
- Theme customisation – how to store javascript externally when it utilises php variables?
- Getting click on item to open closest relevant element (popup) with jQuery
- Replicate Media Galley Edit view in Add Media View