Show Inventory Limit in Form Editor

By default the current inventory is shown in the form editor. Use this filter to show the inventory limit.

Code

Filename: gpi-show-inventory-limit-in-form-editor.php

<?php
/**
 * Gravity Perks // Inventory // Show Inventory Limit in Form Editor
 * https://gravitywiz.com/documentation/gravity-forms-inventory/
 *
 * By default the current inventory is shown in the form editor.
 * Use this filter to show the inventory limit.
 */
add_filter( 'gpi_always_show_inventory_limit_in_editor', '__return_true' );

Leave a Reply

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

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.