Linux 软件免费装
Banner图

Customize Object Selector

开发者 xwp
westonruter
更新时间 2017年11月9日 14:36
PHP版本: 5.3 及以上
WordPress版本: 4.9.0
版权: GPLv2 or later
版权网址: 版权信息

标签

posts pages select2 customizer customize dropdown

下载

0.2.0 0.3.0 0.4.0 0.4.1 0.4.2

详情介绍:

This plugin adds a Customizer control to select one or multiple posts (and eventually terms and users). 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. 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 searched. When the Customize Posts plugin is active, buttons will appear after the Select2 control to 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. This plugin also includes a reusable JavaScript component available at wp.customize.ObjectSelectorComponent which can be used in widgets or other locations. 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. Development of this plugin is done on GitHub. Pull requests welcome. Please see issues reported there before going to the plugin forum.

更新日志:

0.4.2 - 2017-11-01 0.4.1 - 2017-02-17 See issues and PRs in milestone and full release commit log. Props Weston Ruter (@westonruter), Sayed Taqui (@sayedwp. 0.4.0 - 2017-01-08 See issues and PRs in milestone and full release commit log. Props Miina Sikk (@miina), Weston Ruter (@westonruter), Derek Herman (@valendesigns), Sayed Taqui (@sayedwp. 0.3.0 - 2016-09-21 Added: Fixed: 0.2.0 Initial release of fork from Customizer Ajax Select.