Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Automator_Send_Webhook::is_tree_required( $data_type )

Should Automator prepare nested array?


Parameters Parameters

$data_type

(Required)


Top ↑

Return Return

(bool)


Source Source

File: src/core/lib/webhooks/class-automator-send-webhook.php

	private function is_tree_required( $data_type ) {
		$required_for = apply_filters(
			'automator_send_webhook_data_tree_required',
			array(
				'json',
				'graph',
				'xml',
			),
			$data_type
		);
		if ( in_array( $data_type, $required_for, true ) ) {
			return true;
		}

		return false;
	}