| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: JobWP |
| 4 |
* Plugin URI: https://wordpress.org/plugins/jobwp/ |
| 5 |
* Description: Best Recruitment Plugin for WordPress to display job listing in a career page. |
| 6 |
* Version: 1.3 |
| 7 |
* Author: HM Plugin |
| 8 |
* Author URI: https://hmplugin.com |
| 9 |
* Requires at least: 5.2 |
| 10 |
* Requires PHP: 7.2 |
| 11 |
* Tested up to: 5.9.3 |
| 12 |
* Text Domain: jobwp |
| 13 |
* Domain Path: /languages/ |
| 14 |
* License: GPL-2.0+ |
| 15 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 16 |
*/ |
| 17 |
|
| 18 |
if ( ! defined( 'ABSPATH' ) ) { |
| 19 |
exit; |
| 20 |
} |
| 21 |
|
| 22 |
if ( ! function_exists( 'job_fs' ) ) { |
| 23 |
// Create a helper function for easy SDK access. |
| 24 |
function job_fs() { |
| 25 |
global $job_fs; |
| 26 |
|
| 27 |
if ( ! isset( $job_fs ) ) { |
| 28 |
// Include Freemius SDK. |
| 29 |
require_once dirname(__FILE__) . '/freemius/start.php'; |
| 30 |
|
| 31 |
$job_fs = fs_dynamic_init( array( |
| 32 |
'id' => '10190', |
| 33 |
'slug' => 'jobwp', |
| 34 |
'type' => 'plugin', |
| 35 |
'public_key' => 'pk_e2d8d8f3056789d2b63d655f5f710', |
| 36 |
'is_premium' => false, |
| 37 |
'has_addons' => false, |
| 38 |
'has_paid_plans' => false, |
| 39 |
'menu' => array( |
| 40 |
'slug' => 'edit.php?post_type=jobs', |
| 41 |
), |
| 42 |
) ); |
| 43 |
} |
| 44 |
|
| 45 |
return $job_fs; |
| 46 |
} |
| 47 |
|
| 48 |
// Init Freemius. |
| 49 |
job_fs(); |
| 50 |
// Signal that SDK was initiated. |
| 51 |
do_action( 'job_fs_loaded' ); |
| 52 |
} |
| 53 |
|
| 54 |
define('JOBWP_PATH', plugin_dir_path(__FILE__)); |
| 55 |
define('JOBWP_ASSETS', plugins_url('/assets/', __FILE__)); |
| 56 |
define('JOBWP_SLUG', plugin_basename(__FILE__)); |
| 57 |
define('JOBWP_PRFX', 'jobwp_'); |
| 58 |
define('JOBWP_CLS_PRFX', 'cls-jobwp-'); |
| 59 |
define('JOBWP_TXT_DOMAIN', 'jobwp'); |
| 60 |
define('JOBWP_VERSION', '1.3'); |
| 61 |
|
| 62 |
require_once JOBWP_PATH . 'inc/' . JOBWP_CLS_PRFX . 'master.php'; |
| 63 |
$jobwp = new JobWp_Master(); |
| 64 |
register_activation_hook(__FILE__, array($jobwp, JOBWP_PRFX . 'create_tables')); |
| 65 |
$jobwp->jobwp_run(); |