It seems that in the latest version of Pro you can’t pass a {{DC:…}} in JSON to a customer looper and use the value that pulls into the function in the code. Essentially we can’t use custom loopers at all for what they are needed for.
Example:
**JSON passed to custom loop**
{
"cat":"{{dc:term:id}}"
}
**Custom Looper**
add_filter('cs_looper_custom_subcat', function($result, $args) {
$term_id= $args['cat'];
$trm=get_term( $term_id, 'category' );
return ['parent_cat'=>$trm->parent];
}, 10, 2);
**Display the result**
{{dc:looper:field key=“parent_cat”}}
So the above code will not work.
If I echo $args[‘cat’] the code echos the correct id that is passed to the looper but the code does not work. It then returns an empty array. If I change $term_id= $args[‘cat’]; to $term_id= 5; (The id of the cat that is passed from the JSON) then the code works and does what is expected.
So if I hard code the term ID then {{dc:looper:field key=“parent_cat”}} shows the expected result but if I use the arg from the JSON then {{dc:looper:field key=“parent_cat”}} is empty.
Hopefully you can push a fix before the latest theme is pushed as this is a massive problem.