Automattic\WooCommerce\Internal\Fulfillments

OrderFulfillmentsRestController::get_args_for_delete_fulfillment_metaprivateWC 1.0

Get the arguments for the delete fulfillment meta endpoint.

Method of the class: OrderFulfillmentsRestController{}

No Hooks.

Returns

Array.

Usage

// private - for code of main (parent) class only
$result = $this->get_args_for_delete_fulfillment_meta(): array;

OrderFulfillmentsRestController::get_args_for_delete_fulfillment_meta() code WC 10.3.3

private function get_args_for_delete_fulfillment_meta(): array {
	return array(
		'order_id'       => array(
			'description' => __( 'Unique identifier for the order.', 'woocommerce' ),
			'type'        => 'integer',
			'required'    => true,
			'context'     => array( 'view', 'edit' ),
		),
		'fulfillment_id' => array(
			'description' => __( 'Unique identifier for the fulfillment.', 'woocommerce' ),
			'type'        => 'integer',
			'required'    => true,
			'context'     => array( 'view', 'edit' ),
		),
		'meta_key'       => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_key
			'description' => __( 'The meta key to delete.', 'woocommerce' ),
			'type'        => 'string',
			'required'    => true,
		),
	);
}