Image Rights

By Christian Leuenberg

★ 5.0/5 (2 ratings)100+ active installationsVersion 1.3

Adds additional fields for setting image credits in the media library.

Description

This plugin adds new meta fields for images within the WordPress media library. You can display all your images in one place with corresponding copyrights (photographer and platform) via a simple shortcode. Especially the German law forces website owners to display all the copyright holders of graphics and photos used on a website.

Features:

  • adds new meta fields for media library items
  • edit copyright holder / photographer name
  • set an optional stock photo platform
  • shortcode [photo_credits] displays all images with credits set
  • optional image overlay with copyright information

Installation

  1. Upload the plugin files to the /wp-content/plugins/image-rights directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Edit copyright information in your media library items.
  4. Use the shortcode [photo_credits] in order to display a simple table with all your copyrighted images.
  5. Optionally change table layout by addressing CSS class table.photo-credits-table in your theme’s stylesheet.
  6. Activate an optional copyright overlay for images under Settings > Media > Image Rights Options

Screenshots

Changelog

1.3

  • Security: fixed stored Cross-Site Scripting (XSS). Photographer name, platform and image title are now sanitized and escaped.
  • Fixed: PHP warning on pages without a post, e.g. 404 pages.
  • Fixed: a name containing ” | ” is no longer shortened in the overlay.
  • Changed: text domain to image-rights so that translations from wordpress.org work.
  • Removed: unused empty admin scripts and styles.
  • Tested with WordPress 7.1.

1.2

  • Added admin option to make overlays in frontend optional
  • Updated German language file
  • Small bugfixes

1.1

  • Added layers on images with credits in frontend.

1.0

  • Initial release for WordPress plugin directory.