| 1 |
<?php |
| 2 |
|
| 3 |
use AgeGate\App\I18n; |
| 4 |
use AgeGate\Admin\Ajax; |
| 5 |
use AgeGate\Admin\Admin; |
| 6 |
use AgeGate\App\AgeGate; |
| 7 |
use AgeGate\Admin\Update; |
| 8 |
use AgeGate\Enqueue\Enqueue; |
| 9 |
use AgeGate\Legacy\Deprecated; |
| 10 |
use AgeGate\Legacy\Check as LegacyCheck; |
| 11 |
use AgeGate\Routes\Rest\Check; |
| 12 |
use AgeGate\Shortcode\Shortcode; |
| 13 |
use AgeGate\Presentation\Template; |
| 14 |
use AgeGate\Routes\Rest\Admin\Term; |
| 15 |
|
| 16 |
add_action('wp', function() { |
| 17 |
if (apply_filters('age_gate/include_deprecated_hooks', false) === true) { |
| 18 |
new Deprecated; |
| 19 |
} |
| 20 |
}, 0); |
| 21 |
|
| 22 |
new Admin; |
| 23 |
new Ajax; |
| 24 |
new Update; |
| 25 |
|
| 26 |
new AgeGate; |
| 27 |
new I18n; |
| 28 |
|
| 29 |
new Template; |
| 30 |
|
| 31 |
new Check; |
| 32 |
new LegacyCheck; |
| 33 |
|
| 34 |
new Term; |
| 35 |
|
| 36 |
new Shortcode; |
| 37 |
|
| 38 |
new Enqueue; |
| 39 |
|
| 40 |
|