-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroxyapi.php
More file actions
60 lines (55 loc) · 1.94 KB
/
Copy pathroxyapi.php
File metadata and controls
60 lines (55 loc) · 1.94 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Plugin Name: RoxyAPI: Astrology, Vedic, Forecast, Human Design, Numerology
* Plugin URI: https://roxyapi.com/docs/integrations/wordpress
* Description: Add Astrology, Vedic, Forecast, Human Design, Chinese Astrology and Feng Shui readings to any WordPress post, page or widget, as Gutenberg blocks and shortcodes. 18 or more domains on one key, readings in 8 languages, and charts verified against the NASA JPL Horizons ephemeris.
* Version: 1.15.0
* Requires at least: 6.5
* Tested up to: 7.1
* 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
* @copyright 2026 Roxy Labs
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const ROXYAPI_VERSION = '1.15.0';
const ROXYAPI_UI_VERSION = '0.38.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;
}
// Composer's autoloader is preferred when the dev environment installed it
// (composer install). The released zip ships without `vendor/` so we register
// a minimal PSR-4 autoloader covering the plugin's own namespace.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
} else {
spl_autoload_register(
static function ( $fqcn ) {
if ( strpos( $fqcn, 'RoxyAPI\\' ) !== 0 ) {
return;
}
$relative = substr( $fqcn, strlen( 'RoxyAPI\\' ) );
$path = __DIR__ . '/src/' . str_replace( '\\', '/', $relative ) . '.php';
if ( is_readable( $path ) ) {
require_once $path;
}
}
);
}
RoxyAPI\Plugin::load( __FILE__ );