[wordpress插件] Child Order子订单

wordpress 插件 文章 2020-03-22 22:40 564 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Adds an admin panel when editing edit pages, to let you rearrange this page’s child pages and switch their display on/off.

在编辑编辑页面时添加一个管理面板,以便您重新排列该页面的子页面并打开/关闭它们的显示。

This will only affect parts of your theme that display a list of links to child pages, and only those which respect the menu_order setting.

这只会影响主题中显示子页面链接列表的部分,并且仅影响那些遵守 menu_order 设置的部分。

It has no effect on Menus.

它对菜单无效

You need to edit those with the existing menu interface.

您需要使用现有的菜单界面进行编辑。

Actually displaying the list of child pages is outside the scope of this plugin – there are plenty of themes and plugins that do that.

实际上显示子页面列表不在此插件的范围内–有很多主题和插件可以实现这一目的。

Developers

开发人员

For developers, there are a lot of hooks exposed by this plugin, which you can use to add fields and behaviours

对于开发人员而言,此插件暴露了很多挂钩,您可以使用它们来添加字段和行为

When displaying the meta box:

显示meta框时:

    • child_order_before_list – Action called before writing the list of child pages in the admin area
    • child_order_before_list –在管理区域中写入子页面列表之前调用的操作

    • child_order_before_item ($post) – Action called at the start of each item
    • child_order_before_item($ post) –在每个项目开始处调用的操作

    • child_order_after_item ($post) – Action called at the end of each item
    • child_order_after_item($ post) –在每个项目末尾调用的动作

    • child_order_after_list – Action called after writing the whole list
    • child_order_after_list –写入整个列表后调用的动作

    • child_order_item_title ($title, $post) – Filter to control the title displayed for an item
    • child_order_item_title($ title,$ post) –用于控制显示项目标题的过滤器

    • child_order_message ($message) – Filter to control the message displayed after the list
    • child_order_message($ message) –过滤以控制列表后显示的消息

    When saving (in AJAX):

    保存时(在AJAX中):

      • child_order_children ($array, $parent_id) – Filter to adjust the list of post IDs before saving
      • child_order_children($ array,$ parent_id) –过滤以在保存前调整帖子ID列表

      • child_order_before_save ($array, $parent_id) – Action called before saving the order of items
      • child_order_before_save($ array,$ parent_id) –在保存项目顺序之前调用的操作

      • child_order_save_item ($id, $menu_order) – Action called on saving each item
      • child_order_save_item($ id,$ menu_order) –调用保存每个项目的操作

      • child_order_after_save ($array, $parent_id) – Action called after saving the order of items
      • child_order_after_save($ array,$ parent_id) –保存项目顺序后调用的操作

      If you wish to remove the “Edit” and “View” buttons from the output, call this on setup:

      如果您希望从输出中删除“编辑”和“查看”按钮,请在设置时调用它:

      remove_action('child_order_after_item', 'child_order_after_item_edit_link');

        remove_action('child_order_after_item','child_order_after_item_edit_link');

      Be aware that the internal workings of the plugin are subject to change,

      请注意,插件的内部工作方式可能会发生变化,

      so the names and details of these hooks may change in future version.

      因此这些挂钩的名称和详细信息在将来的版本中可能会更改。

安装步骤

    1. Upload the child-order directory to your /wp-content/plugins/ directory
    2. child-order 目录上传到您的 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/child-order.zip
-EOF-

AI助手支持GPT4.0