Value

Constants::CALLBACK_TYPE_DATA = 4

Semantics

Every action callback returns array( $callback_type, $payload ) from execute_callback(). With CALLBACK_TYPE_DATA:

The payload is an associative array sent as JSON (wp_send_json_success). No HTML wrapping — the calling JS consumes the data directly.

Typical usage

DataTable row data (get_datatable_entries), dependent field values, save results.

public function execute_callback(): array {
    return array( Constants::CALLBACK_TYPE_DATA, $payload );
}