Access to plugin variables | WordPress.org

[ad_1]

Hello.

How can I access your plugin’s variables?

I would like to download the car list view and display it on a php template page.

I tried including the main plugin files in the template:

include_once ABSPATH . 'wp-content/plugins/vikrentcar/autoload.php';
include_once ABSPATH . 'wp-content/plugins/vikrentcar/vikrentcar.php';
include_once ABSPATH . 'wp-content/plugins/vikrentcar/defines.php';

Then I placed the loop code in the page template, which I copied in the location below, but I only have a white page.

wp-content/plugins/vikrentcar/site/views/carslist/tmpl/default.php

Can you tell me which files can be included to access all plugin variables?

I would like to build my own view with a list of cars.

I managed to implement my search results template without any problems, but now I would like to build the same view to display a list of cars on the website.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer