the_post_thumbnail_caption WordPress Filter Hook

The the_post_thumbnail_caption hook allows you to add a caption to your post thumbnail. This can be useful for adding a short description of the image or for providing attribution.

apply_filters( 'the_post_thumbnail_caption', string $caption ) #

Filters the displayed post thumbnail caption.


Parameters

$caption

(string)Caption for the given attachment.


Top ↑

Source

File: wp-includes/post-thumbnail-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.