-
Notifications
You must be signed in to change notification settings - Fork 0
/
vaah.php
47 lines (36 loc) · 1.04 KB
/
vaah.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/*
Plugin Name: Vaah WordPress Plugin Framework
Description: Vaah Plugins are developed by WebReinvent
Version: 1.0
Author: WebReinvent
Author URI: https://www.webreinvent.com
*/
require "vendor/autoload.php";
include_once(ABSPATH . '/wp-config.php');
include_once(ABSPATH . '/wp-load.php');
include_once(ABSPATH . "wp-includes/pluggable.php");
include_once(ABSPATH . "wp-admin/includes/user.php");
/*
function vaah_register_query_vars( $vars ) {
$vars[] = 'page';
return $vars;
}
add_filter( 'query_vars', 'vaah_register_query_vars' );
$key = get_query_var( 'paged' );
echo "<pre>";
print_r($key);
echo "</pre>";
die("<hr/>line number=123");*/
// Load admin scripts
include_once ('bootstrap.php');
// Load admin scripts
include_once ('config/admin-scripts.php');
// View Admin Menu
include_once ('config/admin-menu.php');
/*// View Front Menu
include_once ('config/admin-menu.php');*/
// View Front Short Code
include_once ('config/short-codes.php');
// Register Wordpress Routes
include_once ('config/register-routes.php');