Вопрос

Is there a way of obtaining the user ID of the profile being edited in wp-admin?

I know it's in the URL if you are editing a user, EX: ./wp-admin/user-edit.php?user_id=427. Could always $_GET['user_id'] to retrieve the user's ID, but what about when you're editing your own profile in wp-admin? The user ID wouldn't be in the URL. EX ./wp-admin/profile.php

Is there an easy or broad way of retrieving the user ID of the current user profile being edited in wp-admin?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с wordpress.stackexchange
scroll top