PluginProbe
WP Job Manager / 1.33.0
WP Job Manager v1.33.0
2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.1.3 1.10.0 1.11.0 1.11.1 1.12.0 1.12.1 1.13.0 1.14.0 1.15.0 All 154 releases
wp-job-manager / wp-job-manager.php
wp-job-manager.php
48 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: WP Job Manager
4 * Plugin URI: https://wpjobmanager.com/
5 * Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
6 * Version: 1.33.0
7 * Author: Automattic
8 * Author URI: https://wpjobmanager.com/
9 * Requires at least: 4.7.0
10 * Tested up to: 5.2
11 * Text Domain: wp-job-manager
12 * Domain Path: /languages/
13 * License: GPL2+
14 *
15 * @package wp-job-manager
16 */
17
18 if ( ! defined( 'ABSPATH' ) ) {
19 exit;
20 }
21
22 // Define constants.
23 define( 'JOB_MANAGER_VERSION', '1.33.0' );
24 define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
25 define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
26 define( 'JOB_MANAGER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
27
28 require_once dirname( __FILE__ ) . '/includes/class-wp-job-manager-dependency-checker.php';
29 if ( ! WP_Job_Manager_Dependency_Checker::check_dependencies() ) {
30 return;
31 }
32
33 require_once dirname( __FILE__ ) . '/includes/class-wp-job-manager.php';
34
35 /**
36 * Main instance of WP Job Manager.
37 *
38 * Returns the main instance of WP Job Manager to prevent the need to use globals.
39 *
40 * @since 1.26
41 * @return WP_Job_Manager
42 */
43 function WPJM() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName
44 return WP_Job_Manager::instance();
45 }
46
47 $GLOBALS['job_manager'] = WPJM();
48