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: GravityKit - Disable Entry Creation | |
| * Plugin URI: https://www.gravitykit.com | |
| * Description: Automatically delete a Gravity Forms entry and any associated files after the form is submitted. Enable per-form in Form Settings. | |
| * Version: 1.0 | |
| * Author: GravityKit | |
| * Author URI: https://www.gravitykit.com | |
| * License: GPL-2.0+ | |
| * Requires Plugins: gravityforms |
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 | |
| add_filter( 'gravityview/edit_entry/user_can_edit_entry', 'gv_claim_entry_by_user_data', 20, 3 ); | |
| /** | |
| * Allow logged-in users to edit entries where their user data matches a field value in the entry. | |
| * | |
| * Supports multiple Views, each with its own field to check against the current user's display name. | |
| * | |
| * @see https://docs.gravitykit.com/article/520-allow-user-edit-field-match |
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 | |
| /** | |
| * Add {entry_slug} Merge Tag for GravityView | |
| * | |
| * This snippet creates a custom merge tag that outputs the GravityView entry slug. | |
| * The entry slug is used in GravityView URLs and can be customized via the | |
| * 'gravityview/entry/slug' filter. | |
| */ | |
| /** |
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 | |
| /** | |
| * Modify GravityKit log path to use WordPress uploads directory. | |
| * | |
| * @param string $log_path Default log path. | |
| * @return string Modified log path. | |
| */ | |
| add_filter( 'gk/foundation/logger/log-path', function( $log_path ) { | |
| $upload_dir = wp_upload_dir(); |
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 | |
| /** | |
| * Update ACF Google Maps field when editing entries via GravityView | |
| * | |
| * This snippet complements the GP Address Autocomplete ACF snippet: | |
| * https://gravitywiz.com/snippet-library/gpaa-acf-google-maps/ | |
| * | |
| * PROBLEM: The original GP snippet only runs when Advanced Post Creation initially | |
| * creates a post. When you edit an entry through GravityView's Edit Entry feature, | |
| * the ACF Google Maps field becomes empty because the snippet doesn't run again. |
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: EDD Refund Column | |
| * Description: Adds a “Request Refund” column to the Easy Digital Downloads purchase history table that links to a refund page with the Order ID. | |
| * Author: Your Name | |
| * Version: 1.3.0 | |
| * Requires at least: 6.0 | |
| * Requires PHP: 7.4 | |
| * License: GPL-2.0-or-later | |
| * |
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 | |
| /** | |
| * GravityView doesn't trigger the `gform_after_submission` action when editing entries. This does that, | |
| * but ONLY FOR FORM #12. | |
| * | |
| * @param array $form | |
| * @param int $entry_id ID of the entry being updated | |
| * @param GravityView_Edit_Entry_Render $object | |
| * |
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 | |
| /* | |
| * Tell GravityView to allow sorting on Field #1, for Form #4. | |
| * For example, a Custom Content field that contains another field's value. | |
| */ | |
| add_filter( 'gravityview/sortable/formfield_4_1', '__return_true' ); | |
| add_filter( 'gravityview_get_entries', 'gv_custom_sort_by_custom_content_field', 10, 3 ); |
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 | |
| /** | |
| * Add larger-radius options for geolocation radius search. | |
| * | |
| * @param array $options Nested array. `value` key maps to the size of the radius. | |
| * | |
| * @return array Modified array of options. | |
| */ | |
| add_filter( 'gk/gravitymaps/geolocation_radius_options', function ( $options ) { |
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: EDD Create Coupon from Slack | |
| Plugin URL: http://gravityview.co | |
| Description: Allow creating a coupon `/coupon [%]` in Slack | |
| Version: 1.0 | |
| Author: Katz Web Services, Inc. | |
| Author URI: http://katz.co | |
| Contributors: katzwebservices | |
| */ |
NewerOlder