Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_post_thumbnail_id [ WordPress Function ]

get_post_thumbnail_id ( $post_id = null )
Parameters:
  • (int) $post_id Optional. Post ID.
Returns:
  • (int)
Defined at:



Retrieve Post Thumbnail ID.

Source


<?php
function get_post_thumbnail_id$post_id null ) {
    
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
    return 
get_post_meta$post_id'_thumbnail_id'true );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics