| 1 |
<?php |
| 2 |
/** |
| 3 |
* Addon interface. |
| 4 |
* |
| 5 |
* This defines a strict interface that all Core Addons must implement |
| 6 |
* |
| 7 |
* @version 1.0.0 |
| 8 |
* @package Charitable/Interfaces/Charitable_Addon_Interface |
| 9 |
* @author Eric Daams |
| 10 |
* @copyright Copyright (c) 2015, Studio 164a |
| 11 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 12 |
*/ |
| 13 |
|
| 14 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 15 |
|
| 16 |
if ( ! interface_exists( 'Charitable_Addon_Interface' ) ) : |
| 17 |
|
| 18 |
/** |
| 19 |
* Charitable_Addon_Interface interface. |
| 20 |
* |
| 21 |
* @since 1.0.0 |
| 22 |
*/ |
| 23 |
interface Charitable_Addon_Interface { |
| 24 |
|
| 25 |
/** |
| 26 |
* Activate the addon. |
| 27 |
* |
| 28 |
* @return void |
| 29 |
* @access public |
| 30 |
* @static |
| 31 |
* @since 1.0.0 |
| 32 |
*/ |
| 33 |
public static function activate(); |
| 34 |
|
| 35 |
/** |
| 36 |
* Load the addon. |
| 37 |
* |
| 38 |
* @return void |
| 39 |
* @access public |
| 40 |
* @static |
| 41 |
* @since 1.0.0 |
| 42 |
*/ |
| 43 |
public static function load(); |
| 44 |
} |
| 45 |
|
| 46 |
endif; // End interface_exists check. |