-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartworker.php
42 lines (36 loc) · 1.07 KB
/
artworker.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
<?php
/**
* @link https://joshuamckendall.github.io/artworker
* @since 1.0.0
* @package Artworker
*
* @wordpress-plugin
* Plugin Name: Artworker
* Plugin URI: https://joshuamckendall.github.io/artworker
* Description: Adds an art post type and art gallery to WordPress.
* Version: 1.0.1
* Author: Joshua McKendall
* Author URI: https://joshuamckendall.github.io/
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: artworker
* Domain Path: /languages
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'ARTWORKER_PLUGIN_FILE' ) ) {
define( 'ARTWORKER_PLUGIN_FILE', __FILE__ );
}
// Include the main Artworker class.
if ( ! class_exists( 'Artworker', false ) ) {
include_once dirname( ARTWORKER_PLUGIN_FILE ) . '/includes/class-artworker.php';
}
/**
* Returns the main instance of Artworker.
*
* @since 1.0.0
* @return Artworker
*/
function Artworker() {
return Artworker::instance();
}
$_GLOBALS['artworker'] = Artworker();