zenchef-widget-integration
Last commit date
languages
2 weeks ago
src
2 weeks ago
views
2 weeks ago
README.txt
2 weeks ago
configuration.php
2 weeks ago
index.php
2 years ago
uninstall.php
2 years ago
zenchef-widget-integration.php
2 weeks ago
zenchef-widget-integration.php
31 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Zenchef widget integration |
| 4 | * Description: Easily integrates Zenchef widget into all pages of the site. |
| 5 | * Version: 1.3.0 |
| 6 | * Requires at least: 4.6 |
| 7 | * Requires PHP: 7.4 |
| 8 | * Author: Zenchef |
| 9 | * Author URI: https://zenchef.com |
| 10 | * License: GPL2 |
| 11 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 12 | * Text Domain: zenchef-widget-integration |
| 13 | * Domain Path: /languages |
| 14 | */ |
| 15 | |
| 16 | use function Zenchef\Widget\Widget\register_global_hooks; |
| 17 | use function Zenchef\Widget\Widget\Backoffice\register_backoffice_hooks; |
| 18 | use const Zenchef\Widget\ROOT_PATH; |
| 19 | |
| 20 | // Prevent unsecure access to this file. |
| 21 | if (!defined('WPINC')) { |
| 22 | die; |
| 23 | } |
| 24 | |
| 25 | require_once __DIR__ . '/configuration.php'; |
| 26 | require_once ROOT_PATH . 'src/register_global_hooks.php'; |
| 27 | require_once ROOT_PATH . 'src/register_backoffice_hooks.php'; |
| 28 | |
| 29 | register_global_hooks(); |
| 30 | register_backoffice_hooks(); |
| 31 |