# customify/1.7.1/customify.php

Customify, version 1.7.1. 76 lines.

- Page: https://pluginprobe.com/plugins/customify/1.7.1/code/customify.php
- Raw: https://pluginprobe.com/plugins/customify/1.7.1/raw/customify.php
- Modified: 2018-05-22T11:26:38+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/customify/1.7.1/code/customify.php#L10-L20`.

```php
<?php
/*
Plugin Name: Customify
Plugin URI:  https://wordpress.org/plugins/customify/
Description: A Theme Customizer Booster
Version: 1.7.1
Author: Pixelgrade
Author URI: https://pixelgrade.com
Author Email: contact@pixelgrade.com
Text Domain: customify
License:     GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Domain Path: /languages/
*/

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

// ensure EXT is defined
if ( ! defined('EXT')) {
	define('EXT', '.php');
}

require 'core/bootstrap' . EXT;

// Include our helper array class.
require 'includes/class-customify-array' . EXT;

$config = include 'plugin-config' . EXT;

// set textdomain
pixcustomify::settextdomain( 'customify' );

// Ensure Test Data
// ----------------

$defaults = include 'plugin-defaults'.EXT;

$current_data = get_option( $config['settings-key'] );

if ( $current_data === false ) {
	add_option( $config['settings-key'], $defaults );
} elseif ( count( array_diff_key( $defaults, $current_data ) ) != 0)  {
	$plugindata = array_merge( $defaults, $current_data );
	update_option( $config['settings-key'], $plugindata );
}
# else: data is available; do nothing

/**
 * Returns the main instance of PixCustomifyPlugin to prevent the need to use globals.
 *
 * @since  1.5.0
 * @return PixCustomifyPlugin
 */
function PixCustomifyPlugin() {
	/**
	 * The core plugin class that is used to define internationalization,
	 * admin-specific hooks, and public-facing site hooks.
	 */
	require_once( plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php' );

	$instance = PixCustomifyPlugin::instance( __FILE__, '1.7.0' );

	return $instance;
}

// Now get the party started
// We will keep this global variable for legacy
$pixcustomify_plugin = PixCustomifyPlugin();

// Load custom modules
require_once( 'features/class-CSS_Editor.php' );
require_once( 'features/class-Font_Selector.php' );

```
