Support › Meta Box Conditional Logic › Conditional logic based on group count
I have both "Meta Box Group" and "Meta Box Conditional Logic" installed, they both work as they should.
But what I now want is make fields appear based on the group 'count', so if a cetain group contains more than 3 items, make field X appear.
So for example
'visible' => array(
'when' => array(
array( 'meta_box_group', '>', 2 ),
Is something like that achievable in any way?
Thanks in advance!
Thanks for your suggestion! I was also thinking about a custom callback like explained in the documentation.
Now I wonder if something like this could work?
'visible' => array( 'get_clone_count()', '>', 2 )
$x = some way to get the 'meta_box_group' clone count
But then I how do I get data of that from inside that function?