Hi,
Thanks for your messages. Vik Rent Car is written according to the MVC pattern of PHP, and so accessing arrays or objects through the file functions.php
will not work.
You can find some technical documentation on our official website where we explain how to create an override of the default template/layout file of a Widget or a View (a page/shortcode). By cloning the existing and default template file, you can have your own template file inside the so called “overrides directory” and choose that layout from the parameters of the widget. The documentation is available in the Knowledge Base section of our website, inside the category “Customization Tips” and then “Page Overrides”.
Alternatively, there are several native and custom hooks you could use, but if you want to manipulate a query or an array, then the best solution is definitely the overrides of the View template files. This way future updates will not touch your changes.
Lastly, before editing the source code, you should make sure a parameter doesn’t exist already to perform the manipulation operation you need. Instead, if you need to statically add properties to each “car-object”, then again the overrides are the best solution.
We hope this helps!
The VikWP Team