WPDev.one
Core Function
View Source on Trac ↗

get_the_ID()

get_the_ID( )

Retrieves the ID of the current item in the WordPress Loop.

Return Value

((int)
| false) The ID of the current item in the WordPress Loop. False if $post is not set.

Function Information

Since Version
2.1.0
Source File
wp-includes/post-template.php
Advertisement