<?php
/**
 * WP-CLI command reference for the Post Types Order module.
 *
 * @package BlaminhorEssentials
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

return array(
	array(
		'name'        => 'wp blaminhor pto get',
		'description' => __( 'Show the current Post Types Order settings.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor pto get',
	),
	array(
		'name'        => 'wp blaminhor pto set',
		'description' => __( 'Update Post Types Order settings.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor pto set --auto-sort=true',
	),
	array(
		'name'        => 'wp blaminhor pto list-items',
		'description' => __( 'List items of a post type or taxonomy with their current menu_order.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor pto list-items page',
	),
	array(
		'name'        => 'wp blaminhor pto reorder',
		'description' => __( 'Persist a new order for the given post type or taxonomy.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor pto reorder page --order=42,11,7',
	),
	array(
		'name'        => 'wp blaminhor pto reset',
		'description' => __( 'Clear every menu_order for a post type or taxonomy.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor pto reset page --yes',
	),
);
