WC_REST_Email_Settings_V4_Controller::get_update_argsprivateWC 1.0

Get update arguments for the endpoint.

Method of the class: WC_REST_Email_Settings_V4_Controller{}

No Hooks.

Returns

Array.

Usage

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

WC_REST_Email_Settings_V4_Controller::get_update_args() code WC 10.3.6

private function get_update_args() {
	return array(
		'woocommerce_email_from_name'        => array(
			'description' => __( 'Email sender name.', 'woocommerce' ),
			'type'        => 'string',
			'required'    => false,
		),
		'woocommerce_email_from_address'     => array(
			'description' => __( 'Email sender address.', 'woocommerce' ),
			'type'        => 'string',
			'format'      => 'email',
			'required'    => false,
		),
		'woocommerce_email_reply_to_enabled' => array(
			'description' => __( 'Enable reply-to email address.', 'woocommerce' ),
			'type'        => 'boolean',
			'required'    => false,
		),
		'woocommerce_email_reply_to_name'    => array(
			'description' => __( 'Reply-to name.', 'woocommerce' ),
			'type'        => 'string',
			'required'    => false,
		),
		'woocommerce_email_reply_to_address' => array(
			'description' => __( 'Reply-to email address.', 'woocommerce' ),
			'type'        => 'string',
			'format'      => 'email',
			'required'    => false,
		),
	);
}