Yoast\WP\SEO\Actions\Configuration
First_Time_Configuration_Action::can_edit_profile
Checks if the current user has the capability to edit a specific user.
Метод класса: First_Time_Configuration_Action{}
Хуков нет.
Возвращает
true|false.
Использование
// private - только в коде основоного (родительского) класса $result = $this->can_edit_profile( $person_id );
- $person_id(int) (обязательный)
- The id of the person to edit.
Код First_Time_Configuration_Action::can_edit_profile() First Time Configuration Action::can edit profile Yoast 28.1
private function can_edit_profile( $person_id ) {
return \current_user_can( 'edit_user', $person_id );
}