| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
if ( ! class_exists( 'WPPM_Actions' ) ) : |
| 6 |
|
| 7 |
final class WPPM_Actions { |
| 8 |
// constructor |
| 9 |
public function __construct() { |
| 10 |
add_action( 'init', array( $this, 'wppm_load_actions') ); |
| 11 |
} |
| 12 |
|
| 13 |
// Load actions |
| 14 |
function wppm_load_actions() { |
| 15 |
add_action( 'wppm_cron_daily', array($this,'wppm_check_cron_attachment') ); |
| 16 |
} |
| 17 |
|
| 18 |
function wppm_check_cron_attachment(){ |
| 19 |
include WPPM_ABSPATH.'includes/actions/wppm_check_cron_attachment.php'; |
| 20 |
} |
| 21 |
|
| 22 |
} |
| 23 |
endif; |
| 24 |
|
| 25 |
new WPPM_Actions(); |