| 1 |
<?php |
| 2 |
/** |
| 3 |
* Our activation call |
| 4 |
* |
| 5 |
* @package DebugQuickLook |
| 6 |
*/ |
| 7 |
|
| 8 |
// Declare our namespace. |
| 9 |
namespace DebugQuickLook\Activate; |
| 10 |
|
| 11 |
// Set our alias items. |
| 12 |
use DebugQuickLook as Core; |
| 13 |
use DebugQuickLook\Helpers as Helpers; |
| 14 |
|
| 15 |
/** |
| 16 |
* Our inital setup function when activated. |
| 17 |
* |
| 18 |
* @return void |
| 19 |
*/ |
| 20 |
function activate() { |
| 21 |
|
| 22 |
// Include our action so that we may add to this later. |
| 23 |
do_action( Core\HOOK_PREFIX . 'activate_process' ); |
| 24 |
|
| 25 |
// And flush our rewrite rules. |
| 26 |
flush_rewrite_rules(); |
| 27 |
} |
| 28 |
register_activation_hook( Core\FILE, __NAMESPACE__ . '\activate' ); |
| 29 |
|