New on the blog: why AI belongs in the feed →
Home › Forums › Snippets & Custom Code › Public code review: post your snippet, a developer reviews it

Public code review: post your snippet, a developer reviews it

Tags: code-review

Post a snippet you wrote for Gravity Forms, Gravity Flow or GravityView. A BrightLeaf Digital developer reviews it in the thread, usually within a week.

What we look at

  • Hooks: the right hook and priority, and whether it fires where you think. Many Gravity Forms hooks take a form ID suffix (gform_pre_submission_5) so they don't run on every form.
  • Data safety: sanitized input, escaped output, and REST or GFAPI calls that replace more than you meant.
  • Performance: queries inside loops, entry searches without paging.
  • Upgrades: what will break on the next Gravity Forms release.

How to post

  • One snippet per topic, titled with what it does: "Copy a date field into an Asana due date."
  • Where it runs (functions.php, a snippet plugin, an mu-plugin) and your Gravity Forms version.
  • What it should do, and what it actually does.
  • Strip keys, license codes and client data.

Reviews are public so the next person learns from them. For code you can't share, use custom development.

Snippets that prove widely useful may go into our free snippet library, credited to you, with your permission.

<p>Post a snippet you wrote for Gravity Forms, Gravity Flow or GravityView. A BrightLeaf Digital developer reviews it in the thread, usually within a week.</p><p><strong>What we look at</strong></p><ul><li><strong>Hooks:</strong> the right hook and priority, and whether it fires where you think. Many Gravity Forms hooks take a form ID suffix (gform_pre_submission_5) so they don't run on every form.</li><li><strong>Data safety:</strong> sanitized input, escaped output, and REST or GFAPI calls that replace more than you meant.</li><li><strong>Performance:</strong> queries inside loops, entry searches without paging.</li><li><strong>Upgrades:</strong> what will break on the next Gravity Forms release.</li></ul><p><strong>How to post</strong></p><ul><li>One snippet per topic, titled with what it does: &quot;Copy a date field into an Asana due date.&quot;</li><li>Where it runs (functions.php, a snippet plugin, an mu-plugin) and your Gravity Forms version.</li><li>What it should do, and what it actually does.</li><li>Strip keys, license codes and client data.</li></ul><p>Reviews are public so the next person learns from them. For code you can't share, use <a href="https://brightleafdigital.io/custom-dev/">custom development</a>.</p><p>Snippets that prove widely useful may go into our free <a href="https://brightleafdigital.io/code/">snippet library</a>, credited to you, with your permission.</p>

Leave a Reply

This topic is locked. No more replies are allowed.

Log in or create an account to reply.