Linux 软件免费装
Banner图

Plugin Notes

开发者 batmoo
cdillon27
jrf
更新时间 2016年4月14日 13:54
捐献地址: 去捐款
PHP版本: 3.5 及以上
WordPress版本: 4.2
版权: GPLv2 or later
版权网址: 版权信息

标签

plugin meta plugins memo plugin notes

下载

0.1 1.0 1.1 1.2 1.5 1.6

详情介绍:

Allows you to add notes to plugins. Useful when you're using lots of plugins and/or make modifications to a plugin and want to make a note of them, and/or work on your WordPress install with a group of people. This plugin was inspired by a post by Chris Coyier: (http://digwp.com/2009/10/ideas-for-plugins/) Features Credits Markdown script: PHP Markdown 1.0.1.o External link indicator: liberally nicked from the Better WP External Links plugin Translations Dutch - jrf Please help us make this plugin available in more language by translating it. See the FAQ for more info.

安装:

  1. Extract the .zip file and upload its contents to the /wp-content/plugins/ directory. Alternately, you can install directly from the Plugin directory within your WordPress Install.
  2. Activate the plugin through the "Plugins" menu in WordPress.
  3. Add notes to your plugins from the Manage Plugins page (Plugins > Installed)
  4. Party.

屏幕截图:

  • Easily add/edit/delete note or save as notes-template. Uses AJAX so you'll save at least a couple seconds for each note you add/edit/delete.
  • Example of saved note using markdown syntax and variable replacement.
  • A bunch of multi-coloured notes added to plugins.

升级注意事项:

2015-05-xx - 1.6 New feature: color-code notes. 2015-05-xx - 1.5 Improved security and new features: plugin notes template, markdown syntax support and variable replacement. 2015-04-15 - 1.2 Fix strict warning: Redefining already defined constructor. Tested in WordPress 4.1.

常见问题:

Where is the Plugin Notes data stored?

The notes are stored in the options table of the database.

Which variables can I use ?

There are a number of variables you can use in the notes which will automagically be replaced. Most aren't that useful as the info is provided by default for the plugin, but they are included anyway for completeness. Example use: you want a link to the WordPress Plugin repository for each plugin. Instead of manually adding each and every link, you can just add the following note to each plugin and the link will be automagically placed: Plugin: %WPURI_LINK% Available variables: %PLUGIN_PATH% : Plugin uri path on your website %WPURI% : URI of the WordPress repository of the plugin (Please note: it is not tested whether the plugin is actually registered in the WP plugin repository!) %WPURI_LINK% : A link to the above WordPress repository of the plugin Already showing for each plugin (less useful): %NAME%: Plugin Name %URI%: URI of the plugin website %AUTHOR%: Name of the plugin author %AUTHORURI%: Website of the plugin author %VERSION%: Current plugin version %DESCRIPTION%: Description of the plugin

Can I use the markdown syntax in the notes ?

Yes, you can use markdown. The markdown syntax conversion is done on the fly. The notes are saved to the database without conversion. Don't like markdown ? Just add the following snippet to your (child-)themes functions.php file to turn markdown parsing off: add_filter( 'plugin_notes_markdown', '__return_false' );

How do I use Markdown syntax?

Please refer to markdown syntax.

Can I use html in the notes ?

Yes, you can use html in the notes. The following tags are allowed: a, br, p, b, strong, i, em, u, img, hr. The html is saved to the database with the note.

Can I change the allowed html tags ?

Yes, you can, though be careful as you might open up your WP install to XSS attacks. To change the allowed html tags, just add a variation of the following snippet to your (child-)themes functions.php file: add_filter( 'plugin_notes_allowed_tags', 'your_function', 10, 1 ); function your_function( $allowed_tags ) { //do something with the $allowed_tags array return $allowed_tags; }

Can I change the output of the plugin ?

Yes, you can. There are filters provided at three points:

  1. The actual note to be displayed -> plugin_notes_note
  2. The html for the note including the surrounding box -> plugin_notes_row
  3. The html for the input form -> plugin_notes_form Hook into those filters to change the output before it's send to the screen.
add_filter( 'plugin_notes_note', 'your_function', 10, 3 ); function your_function( $note, $plugin_data, $plugin_file ) { //do something return $output; } add_filter( 'plugin_notes_row', 'your_function', 10, 3 ); function your_function( $output, $plugin_data, $plugin_file ) { //do something return $output; } add_filter( 'plugin_notes_form', 'your_function', 10, 2 ); function your_function( $output, $plugin_safe_name ) { //do something return $output; } If you want to filter the note output before the variable replacements are made and markdown syntax is applied, set the priority for your plugin_notes_note filter to lower than 10. Example: add_filter( 'plugin_notes_note', 'your_function', 8, 3 );

How can I translate the plugin?

The plugin is translation ready, though there is not much to translate. Use the /languages/plugin-notes.pot file to create a new .po file for your language. If you would like to offer your translation to other users, please open a pull request on GitHub.

更新日志:

2015-06-13 / 1.6 Originally released Dec 2012 by jrf 2015-06-09 / 1.5 Originally released Dec 2012 by jrf 2015-04-15 / 1.2 2010-10-15 / 1.1 2009-12-04 / 1.0 2009-10-24 / 0.1