[WordPress] 外掛分享: Custom Global Variables

首頁 › 外掛目錄 › Custom Global Variables
WordPress 外掛 Custom Global Variables 的封面圖片
5,000+
安裝啟用
★★★★★
5/5 分(10 則評價)
13 天前
最後更新
—
問題解決
WordPress 3.0.1+ PHP 5.6+ v1.1.3 上架:2016-04-06

內容簡介

Custom Global Variables 外掛讓您能夠創建自訂變數,以便在網站上管理資訊,如電話號碼、地址、社交媒體連結等,並可在 WordPress 和 PHP 中輕鬆存取,提升網站維護效率。

【主要功能】
• 創建自訂變數以管理網站資訊
• 全球性存取變數,提升維護效率
• 本地儲存變數,無需資料庫呼叫

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Custom Global Variables」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Create your own custom variables to manage information on your website such as:

Phone numbers
Addresses
Social media links
HTML snippets
And anything else
test

Easily access them globally in WordPress and PHP.
Why you need it
Rather than having to change something like an email address across multiple pages, you can do it in one place. Avoid the pitfalls of hard coding information in your WordPress theme that is likely to change.
Why it’s better

Your variables are stored and retrieved locally without any calls to the database. That means faster load times for your pages!
Variables can be accessed easily in PHP from the global scope.

Usage
Display your variables using the shortcode syntax:
[cgv variable-name]

Or using the superglobal in PHP:

延伸相關外掛

文章
Filter
Mastodon