Skip to content

Copyright helpers - notice, image credit, Gutenberg block

The Copyright helpers module exposes three reusable outputs for copyright and attribution notices:

  • Shortcode [polski_copyright] - standard copyright line
  • Shortcode [polski_image_credit] - per-image credit footer
  • Gutenberg block polski/copyright - dynamic block using the same rendering

These are small building blocks, not a full DAM. Use them to attribute stock photography, user submissions and own content consistently across the shop.

[polski_copyright]
[polski_copyright year="2020 - 2026" owner="Przykladowa Firma sp. z o.o." license="CC BY 4.0"]
AttributeDefaultDescription
yearcurrent UTC yearSingle year or range
ownerpolski_general.company_name or the WordPress site titleRights holder
licenseemptyLicense identifier (SPDX, Creative Commons)
separator-Separator between owner and license

Output:

<span class="polski-copyright">&copy; 2026 Przykladowa Firma - License: CC BY 4.0</span>

Block name: polski/copyright. Category: Widgets. Supports wide/full alignment. Attributes: owner, year, license. Rendering is dynamic, so the “current year” auto-updates without re-saving the page.

[polski_image_credit image_id="42" credit="Photo: Jan Kowalski" source="https://example.com" license="CC BY-SA 4.0"]
[polski_image_credit credit="Photo by Jan Kowalski"]
AttributeDefaultDescription
image_idemptyWordPress attachment ID. When set, the image is rendered before the caption
creditemptyAuthor or credit string (required unless image_id is set alone)
sourceemptyURL to the source. Rendered as a “source” link with rel="nofollow noopener"
licenseemptyLicense identifier
sizemediumWordPress image size slug

Output is a <figure> with a <figcaption>:

<figure class="polski-image-credit">
<img src="..." alt="..." />
<figcaption class="polski-image-credit__caption">Photo: Jan Kowalski - <a href="..." rel="nofollow noopener" target="_blank">source</a> - License: CC BY-SA 4.0</figcaption>
</figure>
  • Shop footer copyright line (with current year and company name auto-filled)
  • Product gallery credits for stock photography
  • Blog post hero image attribution
  • Team member portrait credits

Most block themes expose a site footer template. Drop the Copyright notice block into it and remove hard-coded copyright text - the year updates automatically after the new year, no theme edits required.

  • Public (frontend-safe)
  • No admin UI
  • No DAM - the plugin does not track licenses attached to media items (planned for 2.3.0)
  • License field accepts any string - no SPDX validation
  • The image credit shortcode does not generate schema.org Photograph structured data yet
  • Styling is minimal - override .polski-copyright and .polski-image-credit in theme CSS