跳转到主要内容

最近更新的页面

移除动态标签

Elementor 开发者文档

要移除现有的动态标签,开发者只需通过传递动态标签名称来注销现有标签。 钩子 为此,我们需要挂载到包含动态标签管理器的 elementor/dynamic_tags/register 动作,并将...

由 壳壳虫 更新于 7 个月前

Dynamic Tags

Elementor 开发者文档

Dynamic Tags are used to insert customized data based on various sources. For example, Elementor ...

由 壳壳虫 更新于 7 个月前

动态标签结构

Elementor 开发者文档

每个动态标签都需要具备一些基本设置,例如唯一的名称。除此之外,还有一些高级设置,如动态标签控件,这些基本上是可选字段,用户可以在其中配置自定义数据。还有一个渲染方法,它根据从动态标签控件获取的用...

由 壳壳虫 更新于 7 个月前

动态标签渲染

Elementor 开发者文档

render 方法生成最终输出并将数据回显到控件。如果动态标签有控件,渲染函数应在生成输出时使用这些数据。 渲染方法 要渲染动态标签输出并回显数据,我们使用 render() 方法,如下所示:...

由 壳壳虫 更新于 7 个月前

Dynamic Tags Groups

Elementor 开发者文档

To simplify navigation, all tags are arranged into groups. This allows users to quickly scan the ...

由 壳壳虫 更新于 7 个月前

动态标签数据

Elementor 开发者文档

每个动态标签都需要基本信息,例如唯一 ID、标题、组别和类别。 数据方法 动态标签数据通过这些方法"返回": class Elementor_Test_Tag extends \Elemento...

由 壳壳虫 更新于 7 个月前

动态标签控件

Elementor 开发者文档

简单标签返回没有依赖关系的动态数据,例如随机数。更复杂的标签可能包含可选字段,用户可以在其中配置自定义数据,例如用户可以设置最小值和最大值的随机数。随后,渲染方法将使用这些自定义字段来生成最终输...

由 壳壳虫 更新于 7 个月前

动态标签分类

Elementor 开发者文档

创建控件时,开发者可以定义控件是否接受动态数据。若控件接受动态数据,则必须设置数据类型(如文本值、颜色、图像)。而动态标签需要定义其向控件返回的数据类型。 这正是分类发挥作用之处。Element...

由 壳壳虫 更新于 7 个月前

复杂示例

Elementor 开发者文档

为展示复杂动态标签,我们将允许用户从可用服务器变量列表中显示服务器变量。它将包含一个自定义的动态标签组,并提供一个包含所有可用服务器变量的选择框控件。渲染函数将返回用户选择的变量及其值。 文件夹...

由 壳壳虫 更新于 7 个月前

高级示例

Elementor 开发者文档

这个更高级的示例将包含自定义字段的使用,以及用户可设置字段的控件。该标签将计算这些字段的平均值,并包含一个用户可设置 ACF 字段 ID 的逗号分隔列表的控件。 文件夹结构 该插件将包含两个文件...

由 壳壳虫 更新于 7 个月前

添加新的动态标签

Elementor 开发者文档

Elementor 提供了许多开箱即用的内置动态标签,同时也允许外部开发者注册新的标签。 钩子 为此,我们只需挂载到 elementor/dynamic_tags/register 动作,该动...

由 壳壳虫 更新于 7 个月前

Simple Example

Elementor 开发者文档

One example of commonly used deprecated conventions is when addon developers create widgets using...

由 壳壳虫 更新于 7 个月前

Elementor 弃用功能

Elementor 开发者文档

Elementor 是一个不断发展的产品。随着时间的推移,代码会被移除或替换。这些弃用信息会通过各种渠道发布。弃用过程是渐进的,弃用的代码至少经过 8 个主要版本后才会被移除。 Deprecat...

由 壳壳虫 更新于 7 个月前

Deprecated Function

Elementor 开发者文档

Elementor offers the Deprecation::deprecated_function() method to handle the deprecation process...

由 壳壳虫 更新于 7 个月前

Deprecated Filter Hooks

Elementor 开发者文档

Elementor offers the Deprecation::apply_deprecated_filter() method to handle the deprecation pro...

由 壳壳虫 更新于 7 个月前

Deprecated Arguments

Elementor 开发者文档

Elementor offers the Deprecation::deprecated_argument() method to handle the deprecation process...

由 壳壳虫 更新于 7 个月前

Deprecated Action Hooks

Elementor 开发者文档

Elementor offers the Deprecation::do_deprecated_action() method to handle the deprecation proces...

由 壳壳虫 更新于 7 个月前

Complex Example

Elementor 开发者文档

In Elementor 3.0, the limited Schemes mechanism had been replaced with Globals which allows users...

由 壳壳虫 更新于 7 个月前

Advanced Example

Elementor 开发者文档

A common example of deprecation is the managers registration process in Elementor 3.5. In this in...

由 壳壳虫 更新于 7 个月前

小部件元素

Elementor 开发者文档

Elementor 小部件是一个拥有自定义属性的元素。小部件对象包含元素 ID、元素类型、小部件类型以及基于小部件控件的所有元素设置等信息。 JSON 结构 Widget 元素结构: { "i...

由 壳壳虫 更新于 7 个月前