{"id":29517,"date":"2014-05-16T08:24:50","date_gmt":"2014-05-16T08:24:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/child-order\/"},"modified":"2014-05-16T08:32:09","modified_gmt":"2014-05-16T08:32:09","slug":"child-order","status":"publish","type":"plugin","link":"https:\/\/th.wordpress.org\/plugins\/child-order\/","author":1901556,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"trunk","tested":"3.9.40","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Page Child Order","header_author":"Marcus Downing","header_description":"","assets_banners_color":"","last_updated":"2014-05-16 08:32:09","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.bang-on.net\/","header_author_uri":"http:\/\/www.bang-on.net","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1819,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573810","resolution":"1","location":"plugin","width":951,"height":601}},"screenshots":{"1":"The edit screen, with options to drag pages up and down."}},"plugin_section":[],"plugin_tags":[944],"plugin_category":[],"plugin_contributors":[83366,83365],"plugin_business_model":[],"class_list":["post-29517","plugin","type-plugin","status-publish","hentry","plugin_tags-search","plugin_contributors-diddledan","plugin_contributors-marcusdowning","plugin_committers-marcusdowning"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/child-order.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/child-order\/trunk\/screenshot-1.png?rev=1573810","caption":"The edit screen, with options to drag pages up and down."}],"raw_content":"<!--section=description-->\n<p>Adds an admin panel when editing edit pages, to let you rearrange this page's child pages and switch their display on\/off.<\/p>\n\n<p>This will only affect parts of your theme that display a list of links to child pages, and only those which respect the <code>menu_order<\/code> setting. It has <em>no effect<\/em> on Menus. You need to edit those with the existing menu interface.<\/p>\n\n<p>Actually displaying the list of child pages is outside the scope of this plugin - there are plenty of themes and plugins that do that.<\/p>\n\n<h3>Developers<\/h3>\n\n<p>For developers, there are a lot of hooks exposed by this plugin, which you can use to add fields and behaviours<\/p>\n\n<p>When displaying the meta box:<\/p>\n\n<ul>\n<li><code>child_order_before_list<\/code> - Action called before writing the list of child pages in the admin area<\/li>\n<li><code>child_order_before_item ($post)<\/code> - Action called at the start of each item<\/li>\n<li><code>child_order_after_item ($post)<\/code> - Action called at the end of each item<\/li>\n<li><code>child_order_after_list<\/code> - Action called after writing the whole list<\/li>\n<li><code>child_order_item_title ($title, $post)<\/code> - Filter to control the title displayed for an item<\/li>\n<li><code>child_order_message ($message)<\/code> - Filter to control the message displayed after the list<\/li>\n<\/ul>\n\n<p>When saving (in AJAX):<\/p>\n\n<ul>\n<li><code>child_order_children ($array, $parent_id)<\/code> - Filter to adjust the list of post IDs before saving<\/li>\n<li><code>child_order_before_save ($array, $parent_id)<\/code> - Action called before saving the order of items<\/li>\n<li><code>child_order_save_item ($id, $menu_order)<\/code> - Action called on saving each item<\/li>\n<li><code>child_order_after_save ($array, $parent_id)<\/code> - Action called after saving the order of items<\/li>\n<\/ul>\n\n<p>If you wish to remove the \"Edit\" and \"View\" buttons from the output, call this on setup:<\/p>\n\n<pre><code>remove_action('child_order_after_item', 'child_order_after_item_edit_link');\n<\/code><\/pre>\n\n<p>Be aware that the internal workings of the plugin are subject to change,\nso the names and details of these hooks may change in future version.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>child-order<\/code> directory to your <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Updates to improve apprearance with WordPress 3.8+<\/li>\n<li>Fixed to work on multisite<\/li>\n<li>Added more hooks for other plugins<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version<\/li>\n<\/ul>","raw_excerpt":"Quickly adjust the order of child pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29517"}],"author":[{"embeddable":true,"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/marcusdowning"}],"wp:attachment":[{"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29517"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29517"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29517"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29517"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29517"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/th.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}