| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Falcon |
| 4 |
* Plugin URI: https://elightup.com/products/ |
| 5 |
* Description: A WordPress cleanup and performance optimization plugin. |
| 6 |
* Version: 2.0.3 |
| 7 |
* Author: eLightUp |
| 8 |
* Author URI: https://elightup.com |
| 9 |
* License: GPL2+ |
| 10 |
* Text Domain: falcon |
| 11 |
* Domain Path: /languages/ |
| 12 |
*/ |
| 13 |
|
| 14 |
namespace Falcon; |
| 15 |
require __DIR__ . '/vendor/autoload.php'; |
| 16 |
|
| 17 |
new General; |
| 18 |
new Settings; |
| 19 |
|
| 20 |
if ( Settings::is_feature_active( 'no_embeds' ) ) { |
| 21 |
require __DIR__ . '/vendor/disable-embeds/disable-embeds.php'; |
| 22 |
} |
| 23 |
|
| 24 |
if ( ! is_admin() ) { |
| 25 |
new Header; |
| 26 |
} else { |
| 27 |
new Recommendation; |
| 28 |
} |
| 29 |
|
| 30 |
add_action( 'init', function () { |
| 31 |
load_plugin_textdomain( 'falcon', false, plugin_basename( __DIR__ ) . '/languages/' ); |
| 32 |
} ); |