admin_post_thumbnail_html

Advertisement

Summery Summery

Filters the admin post thumbnail HTML markup to return.

Syntax Syntax

apply_filters( 'admin_post_thumbnail_html', string $content, int $post_id, int|null $thumbnail_id )

Parameters Parameters

$content

(string) Admin post thumbnail HTML markup.

$post_id

(int) Post ID.

$thumbnail_id

(int|null) Thumbnail attachment ID, or null if there isn't one.

Source Source

File: wp-admin/includes/post.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Added the $thumbnail_id parameter.
3.5.0 Added the $post_id parameter.
2.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.