-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheasy-post-types-fields.php
61 lines (54 loc) · 1.46 KB
/
easy-post-types-fields.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
/**
* The main plugin file for Easy Post Types and Fields.
*
* @package Barn2\easy-post-types-fields
* @author Barn2 Plugins <support@barn2.com>
* @license GPL-3.0
* @copyright Barn2 Media Ltd
*
* @wordpress-plugin
* Plugin Name: Easy Post Types and Fields
* Plugin URI: https://wordpress.org/plugins/easy-post-types-fields/
* Description: Create custom post types, fields and taxonomies.
* Version: 1.1.11
* Author: Barn2 Plugins
* Author URI: https://barn2.com
* Text Domain: easy-post-types-fields
* Domain Path: /languages
*
* Requires at least: 6.1
* Requires PHP: 7.4
*
* Copyright: Barn2 Media Ltd
* License: GNU General Public License v3.0
* License URI: https://www.gnu.org/licenses/gpl.html
*/
namespace Barn2\Plugin\Easy_Post_Types_Fields;
// Prevent direct file access
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const PLUGIN_VERSION = '1.1.11';
const PLUGIN_FILE = __FILE__;
// Autoloader.
require_once __DIR__ . '/vendor/autoload.php';
/**
* Helper function to access the shared plugin instance.
*
* @return Plugin
*/
function ept() {
return Plugin_Factory::create( PLUGIN_FILE, PLUGIN_VERSION );
}
/**
* Return the absolute path of the plugin
*
* @param string $path A subpath the plugin dir
* @return string
*/
function get_dir_path( $path = '' ) {
return wp_normalize_path( ept()->get_dir_path() . "/$path" );
}
// Load the plugin.
ept()->register();