ph91.de
  • Home
  • About me
  • Categories
    • Software Development
    • New Zealand
    • Music
    • Tech & IT
    • Sports
    • Dublin
    • Junk
  • Contact
  • Disclaimer
ph91.de
ph91.de
  • Home
  • About me
  • Categories
    • Software Development
    • New Zealand
    • Music
    • Tech & IT
    • Sports
    • Dublin
    • Junk
  • Contact
  • Disclaimer
  • Software Development

Gravity Forms – User Registration fix

  • 17. September 2017
  • Philipp

For the registration of our new users on speed-kini.de, we use the very cool Gravity Forms Plugin. It all worked quite fine until new users did not have a first name, last name or display name specified. I’ve had the hope that there will be an update, which may fix this problem, but there hasn’t been one yet. So I decided to fix it manually by updating the new WordPress user object:

Needed Action

Gravity forms provide gform_user_registered. It has the entry, feed, and user_id as parameters:

gform_user_registered usage

Custom Code

public static function userRegistered( $user_id, $feed, $entry, $user_pass ) {
   $firstName = $entry[ $feed['meta']['first_name'] ];
   $lastName  = $entry[ $feed['meta']['last_name'] ];
   $userName  = $entry[ $feed['meta']['username'] ];

   // Fix registration
   $res = wp_update_user( array(
      'ID'           => $user_id,
      'first_name'   => $firstName,
      'last_name'    => $lastName,
      'display_name' => $firstName . " " . $lastName
   ) );
}

This works fine for me  😎

 

Related Topics
  • first_name
  • fix
  • Gravity Forms
  • last_name
  • user registration
  • username
Philipp

Previous Article
  • Tech & IT

Boosting productivity with Trello

  • 6. September 2017
  • Philipp
View Post
Next Article
  • Music

Gilles Peterson words & music w/ Dan Snaith

  • 8. October 2017
  • Philipp
View Post
95 comments

Comments navigation

Older comments
  1. bursa seo says:
    1. September 2025 at 11:19

    Selamlar, biz Bursa’da düğün, nişan ve kurumsal etkinlikler düzenleyen bir firmayız. Yaptığımız işleri Instagram’da paylaşıyoruz ama web sitemiz biraz atıl kalmıştı. “Bursa düğün organizasyon firmaları” aramasında görünür olmak istiyoruz. Aklıma şöyle bir fikir geldi: Sitemizin blogunda “Bursa’daki En İyi 10 Kır Düğünü Mekanı”, “Şirket Lansmanı İçin Organizasyon Fikirleri” gibi listeler ve rehberler yayınlayabiliriz. Bu içerikler hem evlenecek çiftlerin hem de şirketlerin ilgisini çekecektir. Bursa SEO sadece teknik bir iş değil, aynı zamanda yaratıcılık da gerektiriyormuş.

  2. Lewisjaf says:
    16. September 2025 at 21:38

    It’s remarkable to pay a quick visit this website and reading the views of all friends about this piece of writing, while I am also zealous of getting knowledge.
    https://lkra39.at/

  3. Anya134el says:
    17. September 2025 at 12:58

    Hello guys!
    I came across a 134 very cool platform that I think you should check out.
    This platform is packed with a lot of useful information that you might find insightful.
    It has everything you could possibly need, so be sure to give it a visit!
    https://pangeafoodsrl.com/secrets-of-gambling/sports-betting-analysis-and-odd-predictions/

    And do not overlook, everyone, which a person constantly can in this publication locate answers to address the most the absolute tangled queries. The authors attempted — present the complete data via the most very easy-to-grasp method.

  4. Anya134el says:
    18. September 2025 at 10:18

    Hello team!
    I came across a 134 useful website that I think you should check out.
    This platform is packed with a lot of useful information that you might find interesting.
    It has everything you could possibly need, so be sure to give it a visit!
    https://risultati-elezioni2014.eu/betting/responsible-and-safe-online-gambling/

    Additionally don’t forget, everyone, — a person constantly are able to inside this piece find answers to address the the absolute complicated queries. We made an effort — explain all of the data via the most most understandable way.

  5. Dennisgrige says:
    3. October 2025 at 15:01

    https://t.me/s/a_official_1xbet

  6. Dennisgrige says:
    3. October 2025 at 20:52

    https://t.me/s/z_official_1xbet

  7. Thomaspsymn says:
    5. October 2025 at 11:28

    https://t.me/s/Official_Pokerdomm

  8. Thomaspsymn says:
    7. October 2025 at 04:09

    https://t.me/s/Casinosport_1win

  9. SeymourGrabe says:
    7. October 2025 at 22:45

    https://t.me/s/RuBeef_Casino

  10. SeymourGrabe says:
    8. October 2025 at 04:23

    https://t.me/s/official_beef_beef

  11. RichardRed says:
    8. October 2025 at 10:00

    https://t.me/s/win_1_casino_play

  12. RichardRed says:
    8. October 2025 at 15:56

    https://t.me/win_1_casino_play

  13. Adrianaffor says:
    8. October 2025 at 19:40

    https://t.me/s/win_1_play

  14. AndrewAsype says:
    9. October 2025 at 01:20

    https://t.me/s/win_1_casino_1_win

  15. google says:
    12. October 2025 at 13:33

    siteniz muazzam sürekli böyle paylaşım yapmanızı rica ediyorum

  16. mindvault says:
    13. October 2025 at 17:52

    **mindvault**

    mindvault is a premium cognitive support formula created for adults 45+. It’s thoughtfully designed to help maintain clear thinking

  17. mind vault says:
    14. October 2025 at 22:06

    **mind vault**

    mind vault is a premium cognitive support formula created for adults 45+. It’s thoughtfully designed to help maintain clear thinking

  18. gl pro says:
    17. October 2025 at 07:32

    **gl pro**

    gl pro is a natural dietary supplement designed to promote balanced blood sugar levels and curb sugar cravings.

  19. sugarmute says:
    17. October 2025 at 08:06

    **sugarmute**

    sugarmute is a science-guided nutritional supplement created to help maintain balanced blood sugar while supporting steady energy and mental clarity.

  20. vitta burn says:
    17. October 2025 at 13:24

    **vitta burn**

    vitta burn is a liquid dietary supplement formulated to support healthy weight reduction by increasing metabolic rate, reducing hunger, and promoting fat loss.

  21. synaptigen says:
    17. October 2025 at 14:24

    **synaptigen**

    synaptigen is a next-generation brain support supplement that blends natural nootropics, adaptogens

  22. glucore says:
    17. October 2025 at 14:34

    **glucore**

    glucore is a nutritional supplement that is given to patients daily to assist in maintaining healthy blood sugar and metabolic rates.

  23. prodentim says:
    17. October 2025 at 15:05

    **prodentim**

    prodentim an advanced probiotic formulation designed to support exceptional oral hygiene while fortifying teeth and gums.

  24. nitric boost says:
    17. October 2025 at 15:46

    **nitric boost**

    nitric boost is a dietary formula crafted to enhance vitality and promote overall well-being.

  25. sleeplean says:
    17. October 2025 at 17:26

    **sleeplean**

    sleeplean is a US-trusted, naturally focused nighttime support formula that helps your body burn fat while you rest.

  26. wildgut says:
    17. October 2025 at 17:43

    **wildgut**

    wildgutis a precision-crafted nutritional blend designed to nurture your dog’s digestive tract.

  27. mitolyn says:
    17. October 2025 at 20:54

    **mitolyn**

    mitolyn a nature-inspired supplement crafted to elevate metabolic activity and support sustainable weight management.

  28. yu sleep says:
    17. October 2025 at 21:57

    **yu sleep**

    yusleep is a gentle, nano-enhanced nightly blend designed to help you drift off quickly, stay asleep longer, and wake feeling clear.

  29. zencortex says:
    17. October 2025 at 22:01

    **zencortex**

    zencortex contains only the natural ingredients that are effective in supporting incredible hearing naturally.

  30. breathe says:
    18. October 2025 at 00:45

    **breathe**

    breathe is a plant-powered tincture crafted to promote lung performance and enhance your breathing quality.

  31. prostadine says:
    18. October 2025 at 04:09

    **prostadine**

    prostadine is a next-generation prostate support formula designed to help maintain, restore, and enhance optimal male prostate performance.

  32. pinealxt says:
    18. October 2025 at 15:46

    **pinealxt**

    pinealxt is a revolutionary supplement that promotes proper pineal gland function and energy levels to support healthy body function.

  33. energeia says:
    18. October 2025 at 15:56

    **energeia**

    energeia is the first and only recipe that targets the root cause of stubborn belly fat and Deadly visceral fat.

  34. prostabliss says:
    18. October 2025 at 16:18

    **prostabliss**

    prostabliss is a carefully developed dietary formula aimed at nurturing prostate vitality and improving urinary comfort.

  35. boostaro says:
    18. October 2025 at 19:04

    **boostaro**

    boostaro is a specially crafted dietary supplement for men who want to elevate their overall health and vitality.

  36. potent stream says:
    18. October 2025 at 19:58

    **potent stream**

    potent stream is engineered to promote prostate well-being by counteracting the residue that can build up from hard-water minerals within the urinary tract.

  37. hepato burn says:
    19. October 2025 at 14:20

    **hepato burn**

    hepato burn is a premium nutritional formula designed to enhance liver function, boost metabolism, and support natural fat breakdown.

  38. hepato burn says:
    19. October 2025 at 17:34

    **hepato burn**

    hepato burn is a potent, plant-based formula created to promote optimal liver performance and naturally stimulate fat-burning mechanisms.

  39. flow force max says:
    20. October 2025 at 04:36

    **flow force max**

    flow force max delivers a forward-thinking, plant-focused way to support prostate health—while also helping maintain everyday energy, libido, and overall vitality.

  40. neuro genica says:
    20. October 2025 at 06:41

    **neuro genica**

    neuro genica is a dietary supplement formulated to support nerve health and ease discomfort associated with neuropathy.

  41. cellufend says:
    20. October 2025 at 06:55

    **cellufend**

    cellufend is a natural supplement developed to support balanced blood sugar levels through a blend of botanical extracts and essential nutrients.

  42. prodentim says:
    20. October 2025 at 07:32

    **prodentim**

    prodentim is a forward-thinking oral wellness blend crafted to nurture and maintain a balanced mouth microbiome.

  43. revitag says:
    20. October 2025 at 10:15

    **revitag**

    revitag is a daily skin-support formula created to promote a healthy complexion and visibly diminish the appearance of skin tags.

  44. memorylift says:
    23. October 2025 at 13:39

    **memorylift**

    memorylift is an innovative dietary formula designed to naturally nurture brain wellness and sharpen cognitive performance.

  45. Arisha24el says:
    23. October 2025 at 21:32

    Hello comrades
    Hi. A 24 excellent site 1 that I found on the Internet.
    Check out this site. There’s a great article there. https://resistancemedia.org/progressive-slots/how-to-develop-super-memory/|

    There is sure to be a lot of useful and interesting information for you here.
    You’ll find everything you need and more. Feel free to follow the link below.

Comments navigation

Older comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Dev profiles
  • BitBucket
  • Github
  • Stackoverflow
Side Projects
  • NMF
  • Speed-kini.de
  • Sudoku Solver
  • Windwarner
Archive
ph91.de
Blog by Philipp Schreitmüller

Input your search keywords and press Enter.