-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
47 lines (40 loc) · 1.64 KB
/
Copy pathindex.php
File metadata and controls
47 lines (40 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
Plugin Name: WP Custom Function
Description: Кастомні функції для сайту https://kpefk.com.ua/
Version: 2.2
Author: Tymchenko Serhii (ts03-coder)
Author URI: https://github.com/ts03-coder
License: GPL 2.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
defined('ABSPATH') || exit;
define('CF_PLUGIN_FILE', __FILE__);
// ==========================================
// Helpers
// ==========================================
require_once __DIR__ . '/includes/helpers/class-ukrainian-sorter.php';
require_once __DIR__ . '/includes/helpers/class-acf-image.php';
require_once __DIR__ . '/includes/helpers/class-plurals.php';
// ==========================================
// Shortcodes
// ==========================================
require_once __DIR__ . '/includes/shortcodes/class-cyclecom-teachers.php';
require_once __DIR__ . '/includes/shortcodes/class-teachers-count.php';
require_once __DIR__ . '/includes/shortcodes/class-teachers-profiles.php';
// ==========================================
// Admin
// ==========================================
require_once __DIR__ . '/includes/admin/class-admin-bar.php';
// ==========================================
// Notifications
// ==========================================
require_once __DIR__ . '/includes/notifications/class-telegram-notifier.php';
// ==========================================
// Ініціалізація
// ==========================================
add_action( 'plugins_loaded', static function (): void {
(new CF_Admin_Bar())->register();
(new CF_Telegram_Notifier())->register();
(new CF_ACF_WP7_Fix())->register();
} );