説明
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:
<?php
function myFilter($a) {
return $a . "My plugin is activated and very cool!";
}
add_filter('humans_output', 'myFilter');
インストール
This is the same procedure as with all ordinary plugins.
- Download the zip file, unzip it
- Upload it to your /wp-content/plugins/ folder
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to the ‘Humans dot txt’ configuration menu to define your template
- Head over to http://yourblog.com/humans.txt and behold the awesome result!
FAQ
This is a new plugin, haven’t had any questions yet. If you have any, be sure to send them to me.
評価
このプラグインにはレビューがありません。
貢献者と開発者
変更履歴
1.1.1
- Fixed PHP 5.5 compatibility
1.1
- Fixed some issues with newer WordPress versions
1.0.3
- Removed one PHP short tag which caused problems for some server configurations
1.0.2
- Fixed problem with suggestions box not disappearing correctly
- Fixed problem with some settings that weren’t properly registered
- Improved error handling and feedback in the options page
1.0.1
Minor bug fix with suggestions URL being wrong
1.0
Initial release