Return Function in Query Dynamic Args

It would be great to be able to use a return function for the Query Block dynamic args. For example, to use in Include Posts filter:

Currently, although using a shortcode is possible, it has it’s limitation. Because shortcodes always return a strings, but some query args expect an array.

Thanks!

This might be related: Make all dynamic data available for Attributes and Tooltips + Queries?

Cheers

How did you manage to make it work using shortcode?

I get a fatal error ‘Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in’

image