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
- What does [object Object] mean? (JavaScript)
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- Javascript Runtime error: $ is undefined
- How to read data From *.CSV file using javascript?
- How to call a webservice method from an html page [javascript] with out refresh the page
- How to Protect Uploads, if User is not Logged In?
- I want to enqueue a .js file to my child theme
- Upload images to remote server
- Display attachments by ID in a wp.media frame
- How to modify wp.media to get and display multiple images
- How to wp_upload_bits() to a sub-folder?
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Where do the favicons for Media Files come from
- Is it possible to trigger some JavaScript when Media Popup is opened?
- Creating a metabox to upload multiple images, Ignoring The Featured Image
- Ignore a filter on the media library
- How to get the image url in the input box from media library?
- Draggable item in custom gutenberg block
- Including javascript for a shortcode
- Media items hogging pretty permalinks
- Unable to run jQuery script in my template file
- How do I get my page to load the jQuery UI Effects library?
- How to add unique image class to WordPress
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Different upload path per file type
- Dropzonejs with WPCF7 [closed]
- Edit single attachment on click (WP-admin)
- Refreshing collections in the admin media manager
- Jquery conflict
- How do I get allowed Media Library upload file extension list?
- wpColorPicker: How update colors on input value update?
- How to replicate Media Library “Add New” on Plugin Settings Page
- Front-end Ajax File Upload
- Cannot upload anything via wordpress
- WordPress Issue : The uploaded file could not be moved to wp-content/uploads/
- How to embed JS data viz in a simple WordPress website
- WooCommerce Ajax Cart Update Stopped Working
- WordPress Media frame pre load images from ids
- WordPress media uploader – upload tabs not hiding
- Send multiple attachments with JQuery and wp_mail() function
- Yoast SEO breaking media upload
- window.onload wont execute in wordpress
- Too slow Image upload in WordPress Media Library as image number increases
- How to return multiple arguments from AJAX callback function
- JS news ticker is not working on home page but working on other pages. How to solve this?
- “JQMIGRATE: Migrate is Installed” How do I find the problem code? [duplicate]
- Referrer URL with jQuery or Javascript – Cache & Referrer URL Issue
- PHP error when trying to upload .mp3 files via Media Library [closed]
- Using Foundation 5 in WordPress Administration Area
- Get images attached to a specific page
- Ajax Validation for reCaptcha
- Is there a way in WordPress to convert images to WebP without a plugin?
- Unable to get my javascript to work on my website – what am I doing wrong?
- Using WP functions inside javascript
- Add SWF file to wordpress through custom template
- WordPress append -1 to the image name
- Images not displaying on site or media library
- Replicate Media Galley Edit view in Add Media View
- How to make JQuery load on top of head tag before everything
- Front-End Upload media with category
- Show and hide element when URL contains certain section of text?
- Handle image file and save it to media
- Defer Parsing of Scripts
- Orderby post__in Not Working Correctly?
- Media not displaying other users uploads – WordPress 4.9.2
- Notify user we would like them to clear their cookie. Provide a working button to clear cookies for user
- Call full image url instead of stylsheet directory url in JS for Infinite Scroll Function
- comment-reply.js disables any other form javascript
- How to blur the_post_thumbnail() via blur.js (jquery)?
- Custom Javascript not working? [closed]
- How would I get this to work – send to post from thick box
- How to deregister scripts all at once
- controlling whether upload is attached to post or not
- Trying to get fittext to work in WordPress
- How to Run a jQuery Script after a Javascript Script has Finished in WordPress
- TypeError: $ is not a function Error using parallax effect in WordPress Template [duplicate]
- jQuery append only works if I select html in admin section [closed]
- Javascript Loading Effect to URLs
- Use WordPress Built In Jquery
- This code works, but breaks the media uploader. How do I integrate it in a way that won’t?
- upload image to wordpress media library failed for custom post type