[WordPress] 外掛分享: Humans Dot Txt

首頁外掛目錄 › Humans Dot Txt
10+
安裝啟用
尚無評分
4667 天前
最後更新
問題解決
WordPress 2.7.0+ v1.1.1 上架:2011-02-04

內容簡介

此外掛可以加入一個動態 humans.txt 的檔案,並從一個您自己定義的的模板中產生。什麼是 humans.txt 呢?這是網路上最新的事物:http://humanstxt.org/

它使用一個模板格式,您可以根據需要添加您希望顯示在 humans.txt 中的資訊。目前此外掛支援以下模板標籤:

活動中的外掛程式 (名稱、uri、版本、說明、作者、作者 uri)
部落格作者 (登入名稱、顯示名稱、電子郵件)
PHP 版本
WP 版本
目前的佈景主題 (名稱、說明、作者、作者 uri、版本、母佈景主題)
文章數 (已發布、未來、草稿、審核中、私人)
網頁數 (已發布、未來、草稿、審核中、私人)

如果您發現缺少一些模板標籤,您可以輕鬆地擴展這些標籤,並添加新的。只需留言,我會盡力為您修復它。

回饋

我很樂意聽到使用我的東西的人的回饋,如果您使用此外掛並想要問候、提供建議、抱怨,或是任何意見,請在任何您希望的地方留言。

我的聯繫方式如下:

rickard (a) 0x539.se
twitter.com/rickard2

外掛整合

如果您覺得還有更多的資訊需要從外掛中添加,您可以使用過濾器 ‘humans_output’ 將您自己的資訊附加到 humans.txt 檔案。但是,如果這麼做,請成為一位優秀的外掛開發人員,先問用戶是否同意!

一個簡單的示例:
<?php

function myFilter($a) {
return $a . "我的外掛已啟用,而且非常酷!";
}

add_filter('humans_output', 'myFilter');

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin will add a dynamic humans.txt file generated from a template that you’ll define yourself. What’s humans.txt? It’s the latest thing on the web: http://humanstxt.org/
It uses a template format which you can define yourself to add the information you’d like to your humans.txt file. This plugin currently supports the following template tags:

Active plugins (name, uri, version, description, author, author uri)
Blog authors (login name, display name, email)
PHP version
WP version
Current theme (name, description, author, author uri, version, parent)
Number of posts (published, future, drafts, pending, private)
Number of pages (published, future, drafts, pending, private)

It’s pretty easy to extend these template tags with new ones if you’re missing someone. Just leave a message and I’ll try to fix it for you.
Feedback
I love getting feedback from people using my stuff, if you use it and feel like saying hello, leave a suggestion, complaint or whatever, just drop a message wherever you feel like.
My contact information is

rickard (a) 0x539.se
twitter.com/rickard2

Plugin integration
If you feel like there’s more information you’d like to add from your plugin, you can use the filter ‘humans_output’ to append your own information to the humans.txt file. But if you do, please be a good plugin developer and ask the user if it’s ok first!
A simple example:

延伸相關外掛

文章
Filter
Apply Filters
Mastodon