-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroxyapi.php
More file actions
42 lines (37 loc) · 1.2 KB
/
roxyapi.php
File metadata and controls
42 lines (37 loc) · 1.2 KB
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
<?php
/**
* Plugin Name: RoxyAPI: Astrology, Tarot, Numerology, Horoscope and More
* Plugin URI: https://roxyapi.com
* Description: Drop daily horoscopes, tarot pulls, numerology readings, I Ching casts, and natal charts onto any WordPress page. Shortcodes and blocks. Verified against NASA JPL Horizons.
* Version: 1.0.0
* Requires at least: 6.5
* Tested up to: 6.8
* Requires PHP: 7.4
* Author: RoxyAPI
* Author URI: https://roxyapi.com
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: roxyapi
* Domain Path: /languages
*
* @package RoxyAPI
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const ROXYAPI_VERSION = '1.0.0';
const ROXYAPI_PHP_MIN = '7.4.0';
const ROXYAPI_PLUGIN_FILE = __FILE__;
if ( version_compare( PHP_VERSION, ROXYAPI_PHP_MIN, '<' ) ) {
add_action(
'admin_notices',
static function () {
echo '<div class="notice notice-error"><p>RoxyAPI requires PHP 7.4 or higher.</p></div>';
}
);
return;
}
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
RoxyAPI\Plugin::load( __FILE__ );