-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
31 lines (27 loc) · 1.02 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Plugin Name
*
* @package Inpsyde/Users
* @author Khalid Zaid Bin
* @copyright 2021 LearnCodeWeb
* @license MIT
*
* @wordpress-plugin
* Plugin Name: Get Data With API
* Plugin URI: https://github.com/LearnCodeWeb/get-data-from-api-wp
* Description: In this plugin you can get any data from other endpoint with valid access and dispaly into your main website. This plugin will give you the shortcode that you can use to show data into the tabuler form.
* Version: 1.0.0
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Khalid Zaid Bin
* Author URI: https://learncodeweb.com
* Text Domain: /learncodeweb/
* License: MIT
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
include_once('vendor/autoload.php');
include_once('url_path_config.php');
$pluginFileURL = isset($url[1]) ? $url[1] : 'user-data-api-wp/get-data.php
';
new getUserData($pluginFileURL);