WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Filter Reference/wp get attachment thumb file

Description

wp_get_attachment_thumb_file is applied in function [[Function Reference/wp_get_attachment_thumb_file|wp_get_attachment_thumb_file]. wp_get_attachment_thumb_file fetches the path to the thumbnail file of a given attachment. Just before returning, the filter is applied and the path to the file is passed as parameter.

Parameters

$thumbFile
(string) (required) Path to the thumbnail file
Default: None
$id
(int) (required) The ID of the attachment owner of the thumbnail file
Default: None

Changelog

Source Files

This filter is applied by:

Related