Linux 软件免费装
Banner图

Simple Hook Widget

开发者 eddiemoya
更新时间 2012年3月15日 08:05
捐献地址: 去捐款
PHP版本: 2.8 及以上
WordPress版本: 3.3.1

标签

widget sidebar development hook custom hook

下载

详情介绍:

This widget allows the user to insert a hook, with a name of their choosing, in any sidebar. The hook can be anything, an existing hook from the WordPress Core, a plugin, a theme, or something you've come up with on the fly. Once the hook exists, your plugins, your theme, or the WordPress Core to make something happen with that hook. This can be used in conjunction with other more complex plugins, to allow you to trigger a hook from the sidebar (yes, that is intentionally vague). It can also serve as a quick alternative to making very simple widgets tied to code from a theme. Say you have a chunk of code which already exists on your site, you'd like to also have it placed in a sidebar, but don't want to make a widget out of it (since its entirely theme-centric). You could simply hook this chunk of code to a custom hook and use the Simple Hook Widget to place that custom hook in the sidebar. This is clearly not the best method of widget development, but there may be times where such on option is useful to a developer in a pinch. Update 2.0

安装:

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. In the widgets interface, drag to desired location.
  4. Enter desired hook name or select one from the drop down menu (if there is one).
  5. Enjoy cake.

升级注意事项:

2.0 New functionality! 1.1.1 Please upgrade to 1.1.1 - Fixes a problem that caused plugin to fail during activation.

常见问题:

Does this plugin work?

Yes

Is it simple?

Yes

Is it dishwasher safe?

No.

更新日志:

2.0 1.1.1 1.1 1.0