WordPress具有诸如wp_get_current_user()之类的全局函数,wp_get_current_user()可以在类方法中调用这些函数,这些方法与\wp_get_current_user但是,,我不能在类构造函数中这样做,也不能将它设置为变量(类属性,如$user = \wp_get_current_user)。我猜这里有一个我不知道的PHP规则?because we have to initialize the variables with constants (expressions