-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeta-flags.php
35 lines (30 loc) · 1.03 KB
/
beta-flags.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
32
33
34
35
<?php
/**
*
* @package Beta Flags
* @author Charles Jaimet
* @link https://github.com/cmjaimet
*
* @wordpress-plugin
* Plugin Name: Beta Flags
* Description: Insert beta flags to activate/deactivate new features - A/B testing absent for now due to Batcache concerns
* Version: 1.4.0
* Author: Charles Jaimet
* Author URI: https://github.com/cmjaimet
* Plugin URI: https://wordpress.org/plugins/beta-flags/
* Text Domain: beta-flags
* Domain Path: /languages
* Requires at least: 3.0
* Tested up to: 4.9.8
* License: GPLv2 and up
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
define( 'BETA_FLAGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
require_once BETA_FLAGS_PLUGIN_PATH . 'classes/class-betaflags.php';
require_once BETA_FLAGS_PLUGIN_PATH . 'classes/class-admin.php';
new \BetaFlags\Admin();
function beta_flag_enabled( $slug ) {
return \BetaFlags\BetaFlags::get_instance()->is_enabled( $slug );
}