• i would like to change or add text to the Media Library Overlay on the right side if you click on an image and can enter a description for the image. At the moment there stands “Description” or “Caption” (German Version installed).

    Screenshot here: https://cl.ly/image/2E1H2820422S

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Use the ‘gettext’ filter used by the _e() translation function. Look for ‘Caption’ in the original text (second parameter) or ‘Beschriftung’ in the translated version (first parameter) and return the actual label you want. The third parameter is ‘default’ in this case. Even with checking for ‘default’ there could be other occurrences of ‘Caption’ that would get converted inadvertently. You may find actions on the edit form or somewhere from which to add and remove the ‘gettext’ filter to prevent it being applied elsewhere needlessly.

Viewing 1 replies (of 1 total)
  • The topic ‘Add text to "Caption" field in media overlay’ is closed to new replies.