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

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

return array(
	array(
		'name'        => 'wp blaminhor cookies get',
		'description' => __( 'Show the current Cookies settings + policy version.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor cookies get',
	),
	array(
		'name'        => 'wp blaminhor cookies set',
		'description' => __( 'Update Cookies banner settings.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor cookies set --layout=banner-bottom',
	),
	array(
		'name'        => 'wp blaminhor cookies bump-version',
		'description' => __( 'Bump the policy version to force every visitor to re-consent.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor cookies bump-version --yes',
	),
	array(
		'name'        => 'wp blaminhor cookies log-stats',
		'description' => __( 'Print summary stats from the consent log.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor cookies log-stats --days=30',
	),
	array(
		'name'        => 'wp blaminhor cookies clear-log',
		'description' => __( 'Purge old consent log rows.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor cookies clear-log --older-than=365 --yes',
	),
);
