[WordPress] 外掛分享: PHP Code Keeper for Gravity Forms

首頁外掛目錄 › PHP Code Keeper for Gravity Forms
WordPress 外掛 PHP Code Keeper for Gravity Forms 的封面圖片
20+
安裝啟用
尚無評分
419 天前
最後更新
問題解決
WordPress 5.6+ PHP 7.4+ v3.1 上架:2022-02-17

內容簡介

這外掛是如何運作的?

Gravity Forms 自訂程式碼保存器…

在 wp-contents/uploads/gravity_hopper/code/ 創建一個資料夾。
新增一個 gf-global-code.php 檔案(用於全域程式碼存放)。
可選擇性地建立/複製/刪除一個 gf-00xx.php 檔案,供每個創建/複製/刪除的表單使用。 (用於表單特定程式碼存放)
將會載入所有與現有的表單相關的程式碼目錄中的檔案,或具有已明確允許的前綴詞的檔案。
允許將任何數量的程式碼檔案匯出到壓縮的 .zip 檔案中。
引入表單設定頁面,可以預覽相關的自訂程式碼,並在不存在時建立一個檔案。

請注意,Gravity Forms 自訂程式碼保存器僅旨在進行程式碼組織,並不限制程式碼何時運行。所有位於 gravity_hopper/code/ 目錄中的允許檔案的程式碼都會在所有表單中執行。始終使用適當的 hooks 和/或條件檢查來針對特定的表單和欄位進行操作。

為什麼要使用它?

Gravity Forms 自訂程式碼保存器可為您的程式碼自訂提供有序性,讓您更好地了解網站上運行的特定程式碼,並確保在進行其他網站修改時不會遺失自訂程式碼。

在攻略文章中了解更多:What is Custom Code Keeper for Gravity Forms?

需要更多 Gravity Forms 的開發工具?

Gravity Hopper 為您建立每個表單時節省時間和精力,並提供與 Gravity Forms 完美集成的精選工具組。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PHP Code Keeper for Gravity Forms」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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, Orbital Forge offers an elite array of builder tools that integrates seamlessly with Gravity Forms.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon