-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-site-utilities.php
33 lines (26 loc) · 1.3 KB
/
main-site-utilities.php
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
<?php
/*
Plugin Name: Main Site Utilities
Description: Utility plugin for UCF's main site.
Version: 3.1.1
Author: UCF Web Communications
*/
namespace UCF\MainSiteUtilities;
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
require_once UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR . 'includes/config.php';
require_once UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR . 'includes/ucf-jobs-feed.php';
require_once UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR . 'includes/ucf-jobs-shortcode.php';
if ( defined( 'WP_CLI' ) && WP_CLI ) {
// Pull in the degree importer files.
require_once UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR . 'importers/research-importer.php';
require_once UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR . 'importers/research-media-importer.php';
require_once UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR . 'importers/research-media-csv-importer.php';
require_once UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR . 'importers/experts-importer.php';
require_once UCF_MAIN_SITE_UTILITIES__PLUGIN_DIR . 'includes/commands.php';
\WP_CLI::add_command( 'research', 'UCF\MainSiteUtilities\Commands\ResearchCommands' );
\WP_CLI::add_command( 'expert', 'UCF\MainSiteUtilities\Commands\ExpertCommands' );
}
add_action( 'init', array( __NAMESPACE__ . '\Shortcodes\Jobs_Shortcode', 'register_shortcode' ) );