Skip to content

wpt_use_featured_image

github-actions[bot] edited this page Jun 20, 2026 · 5 revisions

Filter whether a post should use its featured image to post with a status update.

Auto-generated Example

add_filter(
   'wpt_use_featured_image',
    function(
        bool $use,
        int $post_ID
    ) {
        // Your code here.
        return $use;
    },
    10,
    2
);

Parameters

  • bool $use True to use the featured image.
  • int $post_ID Post ID.

Returns

bool

Files

apply_filters( 'wpt_use_featured_image', true, $post_ID )

← All Hooks

Clone this wiki locally