PluginProbe
Easy Post Types and Fields / 1.1.14
Easy Post Types and Fields v1.1.14
trunk 1.0.0 1.1.0 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9
easy-post-types-fields / easy-post-types-fields.php

easy-post-types-fields.php in Easy Post Types and Fields 1.1.14, at easy-post-types-fields.php

62 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The main plugin file for Easy Post Types and Fields.
4 *
5 * @package Barn2\easy-post-types-fields
6 * @author Barn2 Plugins <support@barn2.com>
7 * @license GPL-3.0
8 * @copyright Barn2 Media Ltd
9 *
10 * @wordpress-plugin
11 * Plugin Name: Easy Post Types and Fields
12 * Plugin URI: https://wordpress.org/plugins/easy-post-types-fields/
13 * Description: Create custom post types, fields and taxonomies.
14 * Version: 1.1.14
15 * Author: Barn2 Plugins
16 * Author URI: https://barn2.com
17 * Text Domain: easy-post-types-fields
18 * Domain Path: /languages
19 *
20 * Requires at least: 6.1
21 * Requires PHP: 7.4
22 *
23 * Copyright: Barn2 Media Ltd
24 * License: GNU General Public License v3.0
25 * License URI: https://www.gnu.org/licenses/gpl.html
26 */
27
28 namespace Barn2\Plugin\Easy_Post_Types_Fields;
29
30 // Prevent direct file access
31 if ( ! defined( 'ABSPATH' ) ) {
32 exit;
33 }
34
35 const PLUGIN_VERSION = '1.1.14';
36 const PLUGIN_FILE = __FILE__;
37
38 // Autoloader.
39 require_once __DIR__ . '/vendor/autoload.php';
40
41 /**
42 * Helper function to access the shared plugin instance.
43 *
44 * @return Plugin
45 */
46 function ept() {
47 return Plugin_Factory::create( PLUGIN_FILE, PLUGIN_VERSION );
48 }
49
50 /**
51 * Return the absolute path of the plugin
52 *
53 * @param string $path A subpath the plugin dir
54 * @return string
55 */
56 function get_dir_path( $path = '' ) {
57 return wp_normalize_path( ept()->get_dir_path() . "/$path" );
58 }
59
60 // Load the plugin.
61 ept()->register();
62