# darkify/1.3.0/darkify.php

Darkify – Dark Mode &amp; Night Mode for Website &amp; Admin (Dark Theme Included), version 1.3.0. 89 lines.

- Page: https://pluginprobe.com/plugins/darkify/1.3.0/code/darkify.php
- Raw: https://pluginprobe.com/plugins/darkify/1.3.0/raw/darkify.php
- Modified: 2025-03-21T01:44:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/darkify/1.3.0/code/darkify.php#L10-L20`.

```php
<?php

/**
 * The plugin bootstrap file
 *
 * This file is read by WordPress to generate the plugin information in the plugin
 * admin area. This file also includes all of the dependencies used by the plugin,
 * registers the activation and deactivation functions, and defines a function
 * that starts the plugin.
 *
 * @link              https://themeatelier.net/
 * @since             1.0.0
 * @package           Darkify
 *
 * @wordpress-plugin
 * Plugin Name:       Darkify
 * Plugin URI:        https://themeatelier.net/downloads/darkify/
 * Description:       Darkify is for a stylish, modern darkmode look that people love.
 * Version:           1.3.0
 * Author:            ThemeAtelier
 * Author URI:        https://themeatelier.net/
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       darkify
 * Domain Path:       /languages
 */

// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}

require_once __DIR__ . '/vendor/autoload.php';

use ThemeAtelier\Darkify\Darkify;

/**
 * Currently plugin version.
 * Start at version 1.0.0 and use SemVer - https://semver.org
 * Rename this for your plugin and update it as you release new versions.
 */
define('DARKIFY_VERSION', '1.3.0');
define('DARKIFY_FILE', __FILE__);
define('DARKIFY_DIR_URL', plugin_dir_url(__FILE__));
define('DARKIFY_BASENAME', plugin_basename(__FILE__));
define('DARKIFY_PATH', plugin_dir_path(__FILE__));
define('DARKIFY_DIR_NAME', dirname(__FILE__));


function darkify()
{
    // Launch the plugin.
    $darkify = new Darkify();
    $darkify->run();
}

include_once ABSPATH . 'wp-admin/includes/plugin.php';
$pro_plugin_slug = 'darkify-pro/darkify-pro.php';
// kick-off the plugin
if (!is_plugin_active($pro_plugin_slug)) {
    darkify();
}


/**
 * Options page callback
 */
function darkify_settings() {}


/**
 * Initialize the plugin tracker
 *
 * @return void
 */
function darkify_appsero_init()
{

    if (!class_exists('DarkifyAppSero\Insights')) {
        require_once DARKIFY_PATH . 'src/Admin/appsero/Client.php';
    }

    $client = new DarkifyAppSero\Client('d1635433-15b4-474b-98f8-0c0809dec2c1', 'Darkify', __FILE__);
    // Active insights
    $client->insights()->init();
}

darkify_appsero_init();

```
