I know I am able to create a view programatically here: "How do I programatically create a view?" - only this requires knowing the structure of the view (e.g. which fields / filters / relationships to use) already.
How can I dynamically create a view at runtime? Either the view would get stored in the same place as typical views (in the views database) - or it could exist 'In code' except the code is dynamically generated. E.g. is it possible just to create views ad hoc in hook_views_default_views()
?
hook_views_default_views()
, you can build it dynamically or statically, totally your choice