@@ 66-68 (lines=3) @@ | ||
63 | $this->check_upgrade(); |
|
64 | ||
65 | // make sure ao_ccss_queue is scheduled OK if an API key is set. |
|
66 | if ( isset( $ao_ccss_key ) && ! empty( $ao_ccss_key ) && ! wp_next_scheduled( 'ao_ccss_queue' ) ) { |
|
67 | wp_schedule_event( time(), apply_filters( 'ao_ccss_queue_schedule', 'ao_ccss' ), 'ao_ccss_queue' ); |
|
68 | } |
|
69 | } |
|
70 | ||
71 | public function load_requires() { |
|
@@ 147-149 (lines=3) @@ | ||
144 | } |
|
145 | ||
146 | // Create a scheduled event for the queue. |
|
147 | if ( isset( $ao_ccss_key ) && ! empty( $ao_ccss_key ) && ! wp_next_scheduled( 'ao_ccss_queue' ) ) { |
|
148 | wp_schedule_event( time(), apply_filters( 'ao_ccss_queue_schedule', 'ao_ccss' ), 'ao_ccss_queue' ); |
|
149 | } |
|
150 | ||
151 | // Create a scheduled event for log maintenance. |
|
152 | if ( isset( $ao_ccss_key ) && ! empty( $ao_ccss_key ) && ! wp_next_scheduled( 'ao_ccss_maintenance' ) ) { |