forked from ryanwelcher/advanced-query-loop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
31 lines (27 loc) · 1015 Bytes
/
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: Advanced Query Loop
* Description: Query loop block variations to create custom queries.
* Plugin URI: https://github.com/ryanwelcher/advanced-query-loop/
* Version: 3.2.0
* Requires at least: 6.2
* Requires PHP: 7.4
* Author: Ryan Welcher
* Author URI: https://www.ryanwelcher.com/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: advanced-query-loop
* Domain Path: /languages
*
* @package AdvancedQueryLoop
*/
namespace AdvancedQueryLoop;
// Some helpful constants.
define( 'BUILD_DIR_PATH', plugin_dir_path( __FILE__ ) . 'build/' );
define( 'BUILD_DIR_URL', plugin_dir_url( __FILE__ ) . 'build/' );
// Prevent direct access.
defined( 'ABSPATH' ) || exit;
// Load the autoloader.
if ( ! class_exists( 'Query_Params_Generator' ) && is_file( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}