Title: Heckler
Author: Maštarija
Published: <strong>2021年7月9日</strong>
Last modified: 2021年7月11日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/heckler/assets/icon.svg?rev=2562012)

# Heckler

 作者: [Maštarija](https://profiles.wordpress.org/mastarija/)

[ダウンロード](https://downloads.wordpress.org/plugin/heckler.0.0.2.zip)

 * [詳細](https://ja.wordpress.org/plugins/heckler/#description)
 * [レビュー](https://ja.wordpress.org/plugins/heckler/#reviews)
 * [開発](https://ja.wordpress.org/plugins/heckler/#developers)

 [サポート](https://wordpress.org/support/plugin/heckler/)

## 説明

Do you often need to create small pieces of content that should be present on e.
g. every product page, but don’t justify writing a full on plugin?

Do you mostly work with designers or users that sometimes need to update some of
that content, but they don’t know their way through Git, FTP or code in general?

If you’ve answered yes to any of those two questions then this plugin is for you!

Heckler allows you to create reusable pieces of code or text and execute / display
them on any wordpress hook (after `init`) or use them as a simple shortcode within
your content.

If you have some coding skills, you can programm a rule which determines if the 
text should be shown, or the code should be hooked or executed.

As an added bonus, there’s even a VIM mode in the code editor to make your life 
as a developer in this world of makeshift plugins just a little more bearable.

If you wish to contribute to this wonderfully horrible plugin you can do so on its
[GitHub repository](https://github.com/mastarija/heckler).

## スクリーンショット

[⌊Simple text editor content, with Elementor support.⌉⌊Simple text editor content,
with Elementor support.⌉[

Simple text editor content, with Elementor support.

[⌊Hook list used to define hooks on which to display your content, priority, number
of arguments (if you are using Code) and if this hook is active or inactive.⌉⌊Hook
list used to define hooks on which to display your content, priority, number of 
arguments (if you are using Code) and if this hook is active or inactive.⌉[

Hook list used to define hooks on which to display your content, priority, number
of arguments (if you are using Code) and if this hook is active or inactive.

[⌊Content displayed on the wp_footer hook.⌉⌊Content displayed on the wp_footer hook
.⌉[

Content displayed on the `wp_footer` hook.

[⌊A Rule editor with VIM support.⌉⌊A Rule editor with VIM support.⌉[

A Rule editor with VIM support.

[⌊A Code editor with VIM support.⌉⌊A Code editor with VIM support.⌉[

A Code editor with VIM support.

[⌊Heckler shortcode embedded into the content.⌉⌊Heckler shortcode embedded into 
the content.⌉[

Heckler shortcode embedded into the content.

[⌊Output of a Heckler shortcode content generated through a Code script.⌉⌊Output
of a Heckler shortcode content generated through a Code script.⌉[

Output of a Heckler shortcode content generated through a Code script.

## FAQ

### Elementor?

Yes, this plugin supports the [Elementor](https://wordpress.org/plugins/elementor/)
as this is what my team works with the most these days. Other builders could be 
added at a later date.

### How does it work?

This plugin stores code snippets in the plugin subfolder `usr` and text snippets
in the WordPress database as a Heckler post.

During the WordPress `init` phase, the plugin checks for all defined snippets that
have defined hooks, and if the `rule` returns true, it hooks the code (loaded from
the `usr` folder) or the text to the defined hooks.

In case a snippet is used as a shortcode, before the shortcode is executed the `
rule` is checked, and if it passes, only then is the text rendered or the code executed.

### How is this not a security hazard?

Good question. This plugin uses [nonces](https://codex.wordpress.org/WordPress_Nonces)
to protect the edit form, and in order to access the edit form you need to have 
highest possible privilegies. To make sure that a user has modified a snippet from
within the Hecker UI the `save_post_heckler` hook is used. Also, all the stored 
code snippets are prefixed with `<?php if ( !defined( 'ABSPATH' ) ) return;` to 
ensure a snippet can’t be accessed directly without loading the WordPress first.

In other words, it’s as much of a hazard as the plugin editor, or the plugin installer
that come by default with the WordPress installation.

If this is still too much of a risk for you, then this plugin might not be for you.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Heckler はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献してい
ます。

貢献者

 *   [ Maštarija ](https://profiles.wordpress.org/mastarija/)

[“Heckler” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/heckler)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/heckler/)するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/heckler/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/heckler/)を 
[RSS](https://plugins.trac.wordpress.org/log/heckler/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## メタ

 *  バージョン **0.0.2**
 *  最終更新日 **5年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 5.0またはそれ以降 **
 *  検証済み最新バージョン: **5.7.17**
 *  PHP バージョン ** 5.6またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/heckler/)
 * タグ
 * [block](https://ja.wordpress.org/plugins/tags/block/)[code](https://ja.wordpress.org/plugins/tags/code/)
   [Hook](https://ja.wordpress.org/plugins/tags/hook/)[shortcode](https://ja.wordpress.org/plugins/tags/shortcode/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/heckler/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/heckler/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/heckler/reviews/)

## 貢献者

 *   [ Maštarija ](https://profiles.wordpress.org/mastarija/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/heckler/)