[WordPress] 外掛分享: System Info

首頁外掛目錄 › System Info
10+
安裝啟用
尚無評分
495 天前
最後更新
問題解決
WordPress 5.3.0+ PHP 7.3.5+ v0.1.12 上架:2024-09-22

內容簡介

總結:System Info 外掛會生成一個 composer.json 檔案,根據 WordPress 安裝中的啟用外掛和佈景主題提供系統資訊。這個外掛旨在協助您透過 Composer 輕鬆管理您的網站相依性。

HTML 置列問答:
<ul>
<li>問題:System Info 外掛主要用途是什麼?</li>
<li>答案:生成 composer.json 檔案並提供系統資訊。</li>

<li>問題:System Info 外掛的功能有哪些?</li>
<li>答案:
<ul>
<li>掃描您目前的 WordPress 設定以檢測啟用的外掛和啟用的佈景主題。</li>
<li>根據檢測外掛和主題,自動生成具有必要 Composer 依賴的 composer.json 內容。</li>
<li>在 WordPress 管理介面中顯示所生成的 composer.json 內容,便於複製。</li>
</ul>
</li>

<li>問題:如何使用 System Info 外掛?</li>
<li>答案:
<ul>
<li>啟用外掛後,前往 WordPress 管理介面中的工具 -&gt; System Info。</li>
<li>檢閱自動生成的 composer.json 內容。</li>
<li>複製所顯示的內容並根據需要在 Composer 設定中使用。</li>
</ul>
</li>

<li>問題:舉例說明 System Info 外掛的輸出內容是什麼?</li>
<li>答案:
<ul>
<li>{</li>
<li>&#8220;name&#8221;: &#8220;yourname/wordpress-site&#8221;,</li>
<li>&#8220;description&#8221;: &#8220;A WordPress site managed with Composer&#8221;,</li>
<li>&#8220;require&#8221;: {</li>
<li>&#8220;php&#8221;: &#8220;&gt;=7.4&#8221;,</li>
<li>&#8220;johnpbloch/wordpress&#8221;: &#8220;&#8220;,</li>
<li>&#8220;wpackagist-plugin/example-plugin&#8221;: &#8220;&#8220;,</li>
<li>&#8220;wpackagist-theme/example-theme&#8221;: &#8220;*&#8221;</li>
<li>}</li>
</ul>
</li>
</ul>

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.12) 或搜尋安裝

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

原文外掛簡介

The System Info plugin generates a composer.json file and provides system information based on the active plugins and theme in your WordPress installation. It’s designed to help you easily manage your site’s dependencies through Composer, a tool for dependency management in PHP.
Features

Scans your current WordPress setup to detect active plugins and the active theme.
Automatically generates composer.json content with the necessary Composer requirements based on the detected plugins and theme.
Displays the generated composer.json content in the WordPress admin interface for easy copying.

Usage

After activating the plugin, navigate to Tools -> System Info in the WordPress admin interface.
Review the automatically generated composer.json content.
Copy the displayed content and use it in your Composer setup as needed.

Example Output
{
“name”: “yourname/wordpress-site”,
“description”: “A WordPress site managed with Composer”,
“require”: {
“php”: “>=7.4”,
“johnpbloch/wordpress”: ““,
“wpackagist-plugin/example-plugin”: ““,
“wpackagist-theme/example-theme”: “*”
}
}

延伸相關外掛

文章
Filter
Mastodon