Beskrywing
How does it work?
PHP Code Keeper for Gravity Formsβ¦
- creates a directory at
wp-content/uploads/gravity_hopper/code/
. - adds a file
gf-global-code.php
(for housing globally run code). - optionally creates/duplicates/deletes a
gf-00xx.php
file for every form created/duplicated/deleted. (for housing form-specific code) - will load all files in the code directory associated with an existing form or having prefix that has been explicitly allowed.
- allows exporting any number of code files to compressed .zip.
- introduces pages in the Gravity Forms interface whereby you can manage custom PHP code.
Code Keeper does not restrict when specific files are included on the site. All code from allowed files residing in the gravity_hopper/code/
directory will run for all forms. Always use appropriate hooks and/or conditional checks when targeting specific forms and fields.
Why use it?
PHP Code Keeper provides orderliness to your code customizations, gives you a better sense of the specific code running across your site, and helps ensure your customizations are not lost when other site modifications are made.
Learn more in the walk-through article What is PHP Code Keeper for Gravity Forms?
Need more for your Gravity Forms development?
Saving you time and effort with every form you build, Gravity Hopper offers an elite array of builder tools that integrates seamlessly with Gravity Forms.
Kwel-vrae
-
Does PHP Code Keeper load custom code per form?
-
No. This plugin is intended for code wrangling only and does not restrict when code is run. AAll code from allowed files residing in the
gravity_hopper/code/
directory will run for all forms. Always use appropriate hooks and/or conditional checks when targeting specific forms and fields. -
Can I edit the custom code from within my WordPress dashboard?
-
Yes! Create, edit, and delete files via Forms
Code and Form Settings Code Keep -
How are files loaded?
-
Allowed files within the directory
gravity_hopper/code/
of your uploads directory will be loaded.The file
gf-global-code.php
will always be loaded and will be loaded before other files.Any files matching prefix patterns allowed via the filter
gravityhopper-cck/allowed_file_prefixes
will be loaded in the order they appear in that filtered array.Finally, any form-specific files named using the convention
gform-00xx.php
will be loaded next, provided a form matching the ID exists on the site.
Aanbevelings
There are no reviews for this plugin.
Contributors & Developers
“PHP Code Keeper for Gravity Forms” is oopbron sagteware. Die volgende mense het bygedra tot die ontwikkeling van hierdie uitbreiding:
ContributorsTranslate “PHP Code Keeper for Gravity Forms” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
3.0 // 2024.06-Jun.19
π¦ NEW: Allows file editing and management via UI
π¦ NEW: Adds integration with Gravity Hopper: Keyboard Shortcut module
2.3.1 // 2022.11-Nov.10
β¨ IMPROVE: Performance in checking files to load
π DOC: Tested up to 6.1
2.3 // 2022.03-Mar.08
π FIX: Load on init
rather than gform_loaded
to prevent form breakage
β¨ IMPROVE: Consolidates multiple calls to GFAPI::get_forms()
β¨ IMPROVE: Adds more details to system report
π DOC: Simplifies readme file
2.2.2 // 2022.02-Feb.18
π RELEASE: renaming the plugin
2.2.1 // 2022.02-Feb.15
π DOC: formats readme file
2.2 // 2022.02-Feb.15
π RELEASE: Initial public launch