PluginProbe
Faust.js / trunk
Faust.js vtrunk
1.8.12 1.8.11 1.4.1 1.8.0 1.8.8 1.8.9 trunk 0.7.0 0.7.1 0.7.10 0.7.11 0.7.3 0.7.4 0.7.5 0.7.6 0.7.7 0.7.8 0.7.9 0.8.0 0.8.1 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 All 40 releases
faustwp / faustwp.php

faustwp.php in Faust.js trunk, at faustwp.php

98 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Faust.js™
4 * Plugin URI: https://faustjs.org/
5 * Description: Plugin for working with Faust.js™, the Headless WordPress Toolkit.
6 * Author: WP Engine
7 * Author URI: https://wpengine.com/
8 * License: GPLv2 or later
9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
10 * Text Domain: faustwp
11 * Domain Path: /languages
12 * Version: 1.8.12
13 * Requires PHP: 7.4
14 * Requires at least: 5.7
15 * Tested up to: 7.0
16 *
17 * @package FaustWP
18 */
19
20 namespace WPE\FaustWP;
21
22 if ( ! defined( 'ABSPATH' ) ) {
23 exit;
24 }
25
26 define( 'FAUSTWP_FILE', __FILE__ );
27 define( 'FAUSTWP_DIR', __DIR__ );
28 define( 'FAUSTWP_URL', plugin_dir_url( __FILE__ ) );
29 define( 'FAUSTWP_PATH', plugin_basename( FAUSTWP_FILE ) );
30 define( 'FAUSTWP_SLUG', dirname( plugin_basename( FAUSTWP_FILE ) ) );
31
32
33 /**
34 * Get the minimum version of PHP required for this plugin.
35 *
36 * @return string Minimum version required.
37 */
38 function faustwp_minimum_php_requirement() {
39 return '7.4';
40 }
41
42 if ( ! is_php_version_compatible( faustwp_minimum_php_requirement() ) ) {
43 add_action(
44 'admin_notices',
45 function () {
46 ?>
47 <div class="notice notice-error">
48 <p>
49 <?php
50 printf(
51 /* translators: %s: Minimum required PHP version */
52 esc_html__( 'FaustWP requires PHP version %s or later. Please upgrade PHP or disable the plugin.', 'faustwp' ),
53 esc_html( faustwp_minimum_php_requirement() )
54 );
55 ?>
56 </p>
57 </div>
58 <?php
59 }
60 );
61 return;
62 }
63
64 // Loads the updater service when present. The embedded self-updater files
65 // (includes/updates/class-plugin-updater.php and includes/updates/check-for-updates.php)
66 // are excluded from the WordPress.org distribution, so the requires below only execute
67 // in distributions that ship the external updater.
68 if ( file_exists( FAUSTWP_DIR . '/includes/updates/class-plugin-updater.php' ) ) {
69 require FAUSTWP_DIR . '/includes/updates/class-plugin-updater.php';
70 }
71 if ( file_exists( FAUSTWP_DIR . '/includes/updates/check-for-updates.php' ) ) {
72 require FAUSTWP_DIR . '/includes/updates/check-for-updates.php';
73 }
74
75 require FAUSTWP_DIR . '/includes/auth/functions.php';
76 require FAUSTWP_DIR . '/includes/telemetry/functions.php';
77 require FAUSTWP_DIR . '/includes/replacement/functions.php';
78 require FAUSTWP_DIR . '/includes/settings/functions.php';
79 require FAUSTWP_DIR . '/includes/graphql/functions.php';
80 require FAUSTWP_DIR . '/includes/utilities/functions.php';
81 require FAUSTWP_DIR . '/includes/auth/callbacks.php';
82 require FAUSTWP_DIR . '/includes/deny-public-access/functions.php';
83 require FAUSTWP_DIR . '/includes/detect-conflicts/functions.php';
84 require FAUSTWP_DIR . '/includes/blocks/functions.php';
85 require FAUSTWP_DIR . '/includes/deny-public-access/callbacks.php';
86 require FAUSTWP_DIR . '/includes/menus/callbacks.php';
87 require FAUSTWP_DIR . '/includes/admin-menus/callbacks.php';
88 require FAUSTWP_DIR . '/includes/replacement/callbacks.php';
89 require FAUSTWP_DIR . '/includes/replacement/graphql-callbacks.php';
90 require FAUSTWP_DIR . '/includes/graphql/callbacks.php';
91 require FAUSTWP_DIR . '/includes/rest/callbacks.php';
92 require FAUSTWP_DIR . '/includes/settings/callbacks.php';
93 require FAUSTWP_DIR . '/includes/updates/upgrade-database.php';
94 require FAUSTWP_DIR . '/includes/utilities/callbacks.php';
95 require FAUSTWP_DIR . '/includes/detect-conflicts/callbacks.php';
96 require FAUSTWP_DIR . '/includes/blocks/callbacks.php';
97 require FAUSTWP_DIR . '/includes/telemetry/callbacks.php';
98