| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Advanced Query Loop |
| 4 |
* Description: Query loop block variations to create custom queries. |
| 5 |
* Plugin URI: https://github.com/ryanwelcher/advanced-query-loop/ |
| 6 |
* Version: 5.0.0 |
| 7 |
* Requires at least: 6.7 |
| 8 |
* Requires PHP: 7.4 |
| 9 |
* Author: Ryan Welcher |
| 10 |
* Author URI: https://www.ryanwelcher.com/ |
| 11 |
* License: GPL v2 or later |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 13 |
* Text Domain: advanced-query-loop |
| 14 |
* Domain Path: /languages |
| 15 |
* |
| 16 |
* @package AdvancedQueryLoop |
| 17 |
*/ |
| 18 |
|
| 19 |
namespace AdvancedQueryLoop; |
| 20 |
|
| 21 |
// Some helpful constants. |
| 22 |
define( 'BUILD_DIR_PATH', plugin_dir_path( __FILE__ ) . 'build/' ); |
| 23 |
define( 'BUILD_DIR_URL', plugin_dir_url( __FILE__ ) . 'build/' ); |
| 24 |
|
| 25 |
// Prevent direct access. |
| 26 |
defined( 'ABSPATH' ) || exit; |
| 27 |
|
| 28 |
// Load the autoloader. |
| 29 |
if ( ! class_exists( 'Query_Params_Generator' ) && is_file( __DIR__ . '/vendor/autoload.php' ) ) { |
| 30 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 31 |
} |
| 32 |
|