Automattic\WooCommerce\Internal\Abilities\Domain

OrderUpdateStatus::get_registration_argspublic staticWC 10.9.0

Get the ability registration arguments.

Method of the class: OrderUpdateStatus{}

No Hooks.

Returns

Array.

Usage

$result = OrderUpdateStatus::get_registration_args(): array;

Changelog

Since 10.9.0 Introduced.

OrderUpdateStatus::get_registration_args() code WC 11.0.1

public static function get_registration_args(): array {
	return array(
		'label'               => __( 'Update order status', 'woocommerce' ),
		'description'         => __(
			'Update an order status.',
			'woocommerce'
		),
		'category'            => 'woocommerce',
		'input_schema'        => self::get_input_schema(),
		'output_schema'       => self::get_entity_output_schema( 'order', self::get_order_output_schema() ),
		'execute_callback'    => array( __CLASS__, 'execute' ),
		'permission_callback' => array( __CLASS__, 'can_edit_order' ),
		'meta'                => array(
			'show_in_rest' => true,
			'mcp'          => array(
				'public' => true,
				'type'   => 'tool',
			),
			'annotations'  => array(
				'readonly'    => false,
				'idempotent'  => false,
				'destructive' => true,
			),
		),
	);
}