-
Notifications
You must be signed in to change notification settings - Fork 0
/
gamos-plugin.php
executable file
·44 lines (38 loc) · 1.08 KB
/
gamos-plugin.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
<?php
/**
* Plugin Name: Gamos Plugin
* Plugin URI: http://gamos.in
* Description: Custom functionality for the Gamos Search site.
* Version: 1.2.1
* Author: Joel James
* Author URI: https://duckdev.com
* GitHub Plugin URI: https://github.com/thechurch/gamos-plugin
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
// Plugin directory.
if ( ! defined( 'GAMOS_DIR' ) ) {
define( 'GAMOS_DIR', plugin_dir_path( __FILE__ ) );
}
// Plugin url.
if ( ! defined( 'GAMOS_URL' ) ) {
define( 'GAMOS_URL', plugin_dir_url( __FILE__ ) );
}
// Admin menu permission.
if ( ! defined( 'GAMOS_ACCESS' ) ) {
define( 'GAMOS_ACCESS', 'manage_options' );
}
// Auto load classes.
require_once GAMOS_DIR . '/core/utils/autoloader.php';
/**
* When everything is ready, start the plugin.
*
* @since 1.0.0
*/
add_action( 'plugins_loaded', function () {
// Only when ACF and WP User Manager is active.
if ( function_exists( 'WPUM' ) && function_exists( 'acf' ) ) {
// Create new instance of the plugin.
\Gamos\Core\Gamos::instance();
}
} );