Beispiel #1
0
<?php

/**
 * UK Mapping
 *
 * @package   UK_Mapping
 * @author    Steve Taylor
 * @license   GPL-2.0+
 *
 * @wordpress-plugin
 * Plugin Name:			UK Mapping
 * Description:			A WordPress plugin for managing UK postcodes and local authority areas data.
 * Version:				0.1
 * Author:				Steve Taylor
 * Text Domain:			pukm-locale
 * License:				GPL-2.0+
 * License URI:			http://www.gnu.org/licenses/gpl-2.0.txt
 * Domain Path:			/lang
 * GitHub Plugin URI:	https://github.com/pilau/uk-mapping
 */
// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}
require_once plugin_dir_path(__FILE__) . 'class-uk-mapping.php';
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
register_activation_hook(__FILE__, array('Pilau_UK_Mapping', 'activate'));
register_deactivation_hook(__FILE__, array('Pilau_UK_Mapping', 'deactivate'));
Pilau_UK_Mapping::get_instance();
Beispiel #2
0
 /**
  * Return an instance of this class.
  *
  * @since     0.1
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }