WordPress 插件开发小技巧之为插件添加快捷键
版权声明:原创文章,转载请注明出处,Crazy Loong(http://goto8848.net)
先来个截图
注意其中的红色方框部分。看见了?这就是我说的快捷方式(其实我也不知道叫什么,就这么叫了
)。这样的话,用户激活插件后,就不用再到管理界面里去找设置了,直接点击这里就可以到相应的地方了。
接下来,重点就是怎么添加它了。这里,要使用到一个叫“plugin_action_links”的hook,位于wp-admin/plugins.php的274行。$action_links = apply_filters('plugin_action_links', $action_links, $plugin_file, $plugin_data, $context);
下面是我添加的一个例子 (阅读全文……)
Popularity: 34% [?]
10条评论 2008年10月19日

Is it possible to show only the selected smilies above the comment text box? Because right now if I activate the plugin I get a huge list of smilies, while I want only the ones selected - and the rest under the 'more' button, like happens underneath the text. This means I have to deactivate the plugin unless there is a solution for this?
谢谢博主了。 。 www.qnuan.com
终于找到了。
2012 新春快乐!
RESOLVED! my fault. I found the problem into the folder path ... firefox don't undestand the "\" slash but only "/" ... thanks anyway ... ^O^ ^O^ ^O^ Another question. Is it possible to add the plugin into the admin post panel?