forked from htmlburger/carbon-fields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
carbon-fields-plugin.php
34 lines (30 loc) · 1.03 KB
/
carbon-fields-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
<?php
/**
* Plugin Name: Carbon Fields
* Description: WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.
* Version: 1.3
* Author: htmlburger
* Author URI: https://htmlburger.com/
* Plugin URI: http://carbonfields.net/
* License: GPL2
* Requires at least: 4.0
* Tested up to: 4.6
* Text Domain: carbon-fields
* Domain Path: /languages
*/
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require( __DIR__ . '/vendor/autoload.php' );
} else {
function carbon_fields_spl_autoload_register( $class ) {
$prefix = 'Carbon_Fields';
if ( stripos( $class, $prefix ) === false ) {
return;
}
$file_path = __DIR__ . '/core/' . str_ireplace( 'Carbon_Fields\\', '', $class ) . '.php';
$file_path = str_replace( '\\', DIRECTORY_SEPARATOR, $file_path );
include_once( $file_path );
}
spl_autoload_register( 'carbon_fields_spl_autoload_register' );
}
include_once( __DIR__ . '/carbon-fields.php' );
include_once( __DIR__ . '/core/functions.php' );