# statify/1.6.3/statify.php

Statify, version 1.6.3. 89 lines.

- Page: https://pluginprobe.com/plugins/statify/1.6.3/code/statify.php
- Raw: https://pluginprobe.com/plugins/statify/1.6.3/raw/statify.php
- Modified: 2018-05-31T11:03:36+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/statify/1.6.3/code/statify.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: Statify
 * Description: Compact, easy-to-use and privacy-compliant stats plugin for WordPress.
 * Text Domain: statify
 * Author:      pluginkollektiv
 * Author URI:  https://pluginkollektiv.org
 * Plugin URI:  https://wordpress.org/plugins/statify/
 * License:     GPLv3 or later
 * Version:     1.6.3
 *
 * @package WordPress
 */

/* Quit */
defined( 'ABSPATH' ) || exit;


/*  Constants */
define( 'STATIFY_FILE', __FILE__ );
define( 'STATIFY_DIR', __DIR__ );
define( 'STATIFY_BASE', plugin_basename( __FILE__ ) );


/* Hooks */
add_action(
	'plugins_loaded',
	array(
		'Statify',
		'instance',
	)
);
register_activation_hook(
	STATIFY_FILE,
	array(
		'Statify_Install',
		'init',
	)
);
register_deactivation_hook(
	STATIFY_FILE,
	array(
		'Statify_Deactivate',
		'init',
	)
);
register_uninstall_hook(
	STATIFY_FILE,
	array(
		'Statify_Uninstall',
		'init',
	)
);


/* Autoload */
spl_autoload_register( 'statify_autoload' );

/**
 * Include classes via autoload.
 *
 * @param string $class Name of an class-file name, without file extension.
 */
function statify_autoload( $class ) {

	$plugin_classes = array(
		'Statify',
		'Statify_Backend',
		'Statify_Frontend',
		'Statify_Dashboard',
		'Statify_Install',
		'Statify_Uninstall',
		'Statify_Deactivate',
		'Statify_Table',
		'Statify_XMLRPC',
		'Statify_Cron',
	);

	if ( in_array( $class, $plugin_classes, true ) ) {
		require_once(
			sprintf(
				'%s/inc/class-%s.php',
				STATIFY_DIR,
				strtolower( str_replace( '_', '-', $class ) )
			)
		);
	}
}

```
