public function is_valid_attach() { if (!current_user_can('edit_users') || !$this->is_profile_page()) { return false; } return true; }