1/**
2 * Retrieve the ID of the current item in the WordPress Loop.
3 *
4 * @since 2.1.0
5 *
6 * @returnint|false The ID of the current item in the WordPress Loop. False if $post is not set.
7 */8functionget_the_ID(){9$post=get_post();10return!empty($post)?$post->ID:false;11}