该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

THA Hooks Interface

描述

THA Hooks Interface is a WordPress plugin developed by ThematoSoup. It creates a settings page which allows you to add code (PHP and HTML) by using hooks defined by the Theme Hook Alliance.

Core WordPress offers a suite of action hooks and template tags, but does not cover many of the common use cases. The Theme Hook Alliance is a community-driven effort to agree on a set of third-party action hooks that THA-compatible themes pledge to implement in order to give desired consistency.

THA Hooks Interface checks whether a theme uses these standardized hooks and if it does, it creates an interface where you can add code to almost any part of the theme.

If your active theme does not declare support for Theme Hook Alliance hooks, you can still use with wp_head and wp_footer hooks which are standard WordPress hooks. Also, if it doesn’t, please bug your theme developer about it 🙂

Banner image credits: http://www.flickr.com/photos/notahipster/3974559627/

屏幕截图

  • THA Hooks Interface Dashboard - screenshot-1.png

安装

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for THA Hooks Interface
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard

Uploading in WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Navigate to the ‘Upload’ area
  3. Select tha-hooks-interface.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download ‘tha-hooks-interface.zip’
  2. Extract the ‘tha-hooks-interface’ directory to your computer
  3. Upload the ‘tha-hooks-interface’ directory to the ‘/wp-content/plugins/’ directory
  4. Activate the plugin in the Plugin dashboard

常见问题

The plugin doesn’t work. Why?

You must have a theme that’s created using standardized hooks from Theme Hook Alliance.

评价

此插件暂无评价。

贡献者及开发者

“THA Hooks Interface” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“THA Hooks Interface”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.1

  • Fixes plugin uninstall error

1.1

  • Fixes two more undefined index notices in class-tha-hooks-interface-admin.php, props @codecandid

1.0.1

  • Fixes an undefined index notice in class-tha-hooks-interface-admin.php

1.0

  • The first version of the plugin.