Replies: 2 comments
-
This is a prerequisite to #109's 'fields' output type for loop field data. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Putting on hold until after CMB2 prototyping is done. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea of this would be to allow the Pods class to work off of an array or object, abstracting what we already do in PodsUI, which would need some adjustments in PodsData, but everything wins with this. Example:
$pod = pods( $data );
or$pod = pods( $data, $row_number );
This could also give us the ability to traverse arrays/objects in the same way we do for relationships, assuming the arrays are multidimensional. This could definitely work for field(), but would be interesting to see how it could translate for find(), though it would not be able to accept SQL syntax, it would need our meta_query field handling.Beta Was this translation helpful? Give feedback.
All reactions