-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjobpress.php
61 lines (51 loc) · 1.71 KB
/
jobpress.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/*
Plugin Name: JobPress
Plugin URI: https://wordpress.org/plugins/jobpress/
Description: JobPress is the ultimate WordPress job board plugin for a company. It is designed & developed to build your company own job board and career page by few clicks.
Version: 2.0.0
Author: Aminur Islam Arnob
Author URI: https://aiarnob.com/
License: GPLv2 or later
Text Domain: jobpress
*/
// If this file is called firectly, abort!!!
defined( 'ABSPATH' ) or die( 'Hey, what are you doing here?' );
// Require once the Composer Autoload
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}
// Define Version.
if ( ! defined( 'JOBPRESS_VERSION' ) ) {
define( 'JOBPRESS_VERSION', '1.0.0' );
}
// Define CONSTANTS
define( 'JOBPRESS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'JOBPRESS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'JOBPRESS_PLUGIN', plugin_basename( __FILE__ ) );
use JobPressInc\Base\Activate;
use JobPressInc\Base\Deactivate;
use JobPressInc\JobPressPluginInit;
use JobPressInc\Base\CreateDbTable;
/**
* The code that runs during plugin activation
*/
function jobpress_plugin_activate() {
Activate::activate();
CreateDbTable::create_application_db_table();
JobPressInc\Base\Flush::add_flush_rewrite_rules_flag();
}
/**
* The code that runs during plugin deactivation
*/
function jobpress_plugin_deactivate() {
Deactivate::deactivate();
}
register_activation_hook( __FILE__, 'jobpress_plugin_activate' );
register_deactivation_hook( __FILE__, 'jobpress_plugin_deactivate' );
/**
* Initialize all the core classes of the plugin
*/
if ( class_exists( 'JobPressInc\\JobPressPluginInit' ) ) {
JobPressPluginInit::register_services();
}