[wordpress插件] Customize Object Selector自定义对象选择器

wordpress 插件 文章 2020-04-10 16:20 511 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin adds a Customizer control to select one or multiple posts (and eventually terms and users).

此插件添加了一个Customizer控件,以选择一个或多个帖子(以及最终的术语和用户)。

Core has long had a dropdown-pages control type which is used in the static front page section for the “page on front” and “page for posts” controls.

Core长期以来具有 dropdown-pages 控件类型,该控件类型在静态首页部分中用于“首页”和“帖子页面”控件。

There is a problem with this control however: it outputs the entire tree of pages for every registered instance of the control.

但是,此控件存在一个问题:它为控件的每个已注册实例输出整个页面树。

For sites that have a lot of pages, this can introduce a performance problem to generate this full list, not only once, but twice for the two controls.

对于页面很多的网站,这可能会导致性能问题,无法生成完整列表,这对于两个控件而言不仅一次,而且两次。

This plugin upgrades the “page on front” and “page for posts” controls to instead make use of the Customize Object Selector control, not only allowing for the list of pages to be loaded via Ajax on demand but also for the list to be <

此插件升级了“页面首页”和“帖子页面”控件,以改用Customize Object Selector控件,不仅允许按需通过Ajax加载页面列表,而且还允许列表<

em>searched.

em>搜索

When the Customize Posts plugin is active, buttons will appear after the Select2 control to

自定义帖子插件处于活动状态时,Select2控件之后将出现按钮,

be able to create new posts to add to the selection.

能够创建新帖子以添加到选择中。

The Customize Object Selector will also power the post parent control.

自定义对象选择器还将为后父控件提供动力。

See wp-customize-posts#233.

参见 wp-customize-posts#233

This plugin also includes a reusable JavaScript component available at wp.customize.ObjectSelectorComponent which can be used in widgets or other locations.

此插件还包含一个可重用的JavaScript组件,该组件可从 wp.customize.ObjectSelectorComponent 获得,该组件可在小部件或其他位置使用。

For an example integration with widgets, see the Post Collection widget

有关与小部件集成的示例,请参见帖子收集小部件

.

For an example integration with the Customize Posts plugin, see pending usage as the Post Parent control.

nofollow“>发布父控件。

Development of this plugin is done on GitHub.

此插件的开发已在GitHub上 完成。

Pull requests welcome.

拉请求欢迎。

Please see issues reported there before going to the 问题,然后再转到

://wordpress.org/support/plugin/customize-object-selector">plugin forum.

://wordpress.org/support/plugin/customize-object-selector“>插件论坛。

下载地址
https://downloads.wordpress.org/plugin/customize-object-selector.0.4.2.zip
-EOF-

AI助手支持GPT4.0