WordPress函数:the_ID

一、函数简介

显示WordPress循环中当前项目的ID。(Displays the ID of the current item in the WordPress Loop.)  

二、函数参数

   

三、函数案例

   

四、源代码

/**
 * Displays the ID of the current item in the WordPress Loop.
 *
 * @since 0.71
 */
function the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
	echo get_the_ID();
}
     
THE END