| 1 |
<?php |
| 2 |
/** |
| 3 |
* Automation Admin Hooks |
| 4 |
* |
| 5 |
* @package Charitable/Classes/Charitable_Automation_Admin_Hooks |
| 6 |
* @author David Bisset |
| 7 |
* @copyright Copyright (c) 2023, WP Charitable LLC |
| 8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 |
* @since 1.8.8 |
| 10 |
* @version 1.8.8 |
| 11 |
*/ |
| 12 |
|
| 13 |
// Exit if accessed directly. |
| 14 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
exit; |
| 16 |
} |
| 17 |
|
| 18 |
/** |
| 19 |
* Automation Admin Hooks |
| 20 |
* |
| 21 |
* @since 1.8.8 |
| 22 |
*/ |
| 23 |
class Charitable_Automation_Admin_Hooks { |
| 24 |
|
| 25 |
/** |
| 26 |
* Set up the class. |
| 27 |
* |
| 28 |
* @since 1.8.8 |
| 29 |
*/ |
| 30 |
public function __construct() { |
| 31 |
$this->init(); |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* Initialize the class. |
| 36 |
* |
| 37 |
* @since 1.8.8 |
| 38 |
*/ |
| 39 |
private function init() { |
| 40 |
/** |
| 41 |
* Load the Automation integration class. |
| 42 |
* |
| 43 |
* @see Charitable_Intergrations_Automation::register_settings() |
| 44 |
*/ |
| 45 |
add_action( 'admin_enqueue_scripts', array( Charitable_Intergrations_Automation::get_instance(), 'enqueue_scripts' ) ); |
| 46 |
} |
| 47 |
} |
| 48 |
|
| 49 |
new Charitable_Automation_Admin_Hooks(); |
| 50 |
|