[wordpress插件] Beans Visual Hook GuideBeans Visual Hook指南

wordpress 插件 文章 2020-03-02 11:00 527 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

A Plugin tool to aid theme development with the innovative, flexible, and incredibly powerful Beans Framework.

使用创新,灵活且功能强大的 Beans 框架来辅助主题开发的插件工具。

p>

>

When enabled alongside Beans Development Mode, this plugin displays all possible Markup Action Hooks made available by the Beans HTML API.

与Beans开发模式一起启用时,此插件将显示Beans HTML API提供的所有可能的标记动作挂钩。

Beans is a dream to develop with, as all markup and attributes added using Beans are registered using a unique Markup ID which can be exposed by enabling the Beans Development Mode in settings.

使用Bean开发是一个梦想,因为使用Bean添加的所有标记和属性都是使用唯一的标记ID注册的,该标记ID可以通过在设置中启用Beans开发模式来公开。

Once Development Mode is enabled, the Markup IDs are output in a data-markup-id tag in the front-end.

启用开发模式后,标记ID将在前端的data-markup-id标记中输出。

The values of which can be used by the various Beans APIs to rapidly develop beautiful themes.

各种 Beans API 可以使用其值来快速开发精美的主题。

Any markup added using Beans adds several dynamic action hooks both before and

使用Beans添加的任何标记都会在之前和之后添加多个动态动作钩子

after it:

之后:

{$markup_id}_before_markup, fires before the opening markup

  {$ markup_id} _before_markup,在打开标记之前触发

{$markup_id}_prepend_markup, fires after the opening markup

{$ markup_id} _prepend_markup,在打开标记后触发

{$markup_id}_append_markup, fires before the closing markup

{$ markup_id} _append_markup,在结束标记之前触发

{$markup_id}_after_markup, fires after the closing markup.

{$ markup_id} _after_markup,在结束标记后触发。

( _prepend_markup and _append_markup are not available for self-closed markup )

(_prepend_markup和_append_markup不可用于自封闭标记

In short, this means pretty much anything can be added anywhere on any page by adding actions to the available hooks.

简而言之,这意味着通过向可用的钩子添加操作,几乎可以在任何页面的任何位置添加任何内容。

This plugin is intended as a companion tool to the Beans Development Mode and your Browser inspector.

该插件旨在作为Beans开发模式和浏览器检查器的辅助工具。

It displays all of the available hooks that have been created dynamically by the Beans HTML API, making it easy for Beans Themes Developers to visualise the appropriate hook to use.

它显示了Beans HTML API动态创建的所有可用钩子,从而使Beans Themes开发人员可以轻松地可视化要使用的钩子。

The Beans logo and Beans name are being used with kind permission from the amazing people behind the Beans Framework.

Beans徽标和Beans名称得到了Beans Framework背后的令人敬畏的人们的友好许可。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / plugin-name 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

下载地址
https://downloads.wordpress.org/plugin/beans-visual-hook-guide.zip
-EOF-

AI助手支持GPT4.0