This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Title: Gravity Forms → Gutenberg Table Block Output | |
| * Description: Replaces Gravity Forms post content with a real Gutenberg Table block, | |
| * dynamically populated using form field values via merge tags. | |
| * Author: Chris Eggleston | |
| * | |
| * How to Use: | |
| * 1. Update the form ID check to match your target form. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Change Role for Expired Memberships | |
| * | |
| * This cron-based code runs daily and automatically changes any user with an expired membership_expiration date from the | |
| * "member" role to the "subscriber" role. | |
| * | |
| * | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Membership Expiration Date Calculation | |
| * | |
| * When someone submits Form 7 and picks a 1-, 2-, or 3-year membership option (field 10), this code creates a brand-new | |
| * membership that starts today and expires exactly that many years in the future, then puts the expiration date into hidden | |
| * field 16 so it gets saved to the user’s profile. | |
| * | |
| * Usage: Change the form and field ID numbers to match those used in your form. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Membership Renewal Calculation | |
| * | |
| * When a logged-in user submits the membership renewal form (ID 1), automatically calculate the correct new expiration date, | |
| * extending from their current expiration if active, or from today if expired, based on whether they chose a 1, 2, or 3-year | |
| * renewal, and save it to their user profile. | |
| * | |
| * Usage: Change the form and field ID numbers to match those used in your form. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Description: Add placeholder text to Gravity Forms list fields. | |
| * Version: 1.0 | |
| * Author: Chris Egglelston | |
| * Website: https://gravityranger.com | |
| */ | |
| <script> | |
| const gfListPlaceholderConfig = { | |
| formId: 401, //replace 401 with your forms ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Gravity Forms Unread Entries Indicator | |
| * Description: Adds an indicator to the Gravity Forms Entries menu showing the number of unread entries. | |
| * Version: 1.0 | |
| * Author: Chris Egglelston | |
| * Website: https://gravityranger.com | |
| */ | |
| if (!defined('ABSPATH')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .hidden-block { | |
| display: none; | |
| } | |
| .hidden-block.show { | |
| display: block; | |
| } | |
| .popup-modal { | |
| display: none; /* Hidden by default */ | |
| position: fixed; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Gravity Forms Field ID Display | |
| * Author: Chris Eggleston | |
| * Version: 1.1 | |
| * | |
| * Description: This script dynamically adds custom-styled Field IDs to all fields in the Gravity Forms editor, | |
| * allowing administrators to easily identify field IDs. | |
| * | |
| * How to use: | |
| * - Include this script on pages where the Gravity Forms editor is loaded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Entries Remaining Shortcode | |
| * | |
| * This shortcode dynamically calculates and displays the remaining availabile entries | |
| * for a Gravity Forms form based on the number of form entries submitted. | |
| * | |
| * Usage: Enable entry limits in form settings and set your limit number. Then add the shortcode [spots_available] to an | |
| * HTML field in your form or to a WordPress post or page where a Gravity Form is embedded. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Gravity Forms Change Entry Date | |
| * Plugin URI: https://gravityranger.com/gravity-forms-changing-the-entry-date | |
| * Description: Adds a meta box to Gravity Forms entry details page allowing admins to change the entry date. | |
| * Version: 1.0 | |
| * Author: Chris Eggleston | |
| * Author URI: https://gravityranger.com | |
| * License: GPL-2.0+ | |
| */ |
NewerOlder