get_current_user_id()获取当前登录的用户id

目录

描述

Returns the ID of the current user.

Use the init or any subsequent action to call this function. Calling it outside of an action can lead to troubles.

get_current_user_id() 描述

用法

 <?php $user_ID get_current_user_id(); ?> 

get_current_user_id() 用法

相关