/** * Renders the user setting markup. * * @since 3.0.0 * @wp-hook personal_options * * @param WP_User $user User object. * * @return bool Whether or not the user setting markup was rendered successfully. */ public function render(WP_User $user) { if ($this->check_user && !current_user_can('edit_user', $user->ID)) { return false; } ?> <tr> <th scope="row"> <?php echo $this->model->title($user); ?> </th> <td> <?php echo $this->model->markup($user); ?> </td> </tr> <?php return true; }