-
Notifications
You must be signed in to change notification settings - Fork 7
/
carbon-fields-plugin.php
30 lines (26 loc) · 1 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
<?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: 3.6.5
* Author: htmlburger
* Author URI: https://htmlburger.com/
* Plugin URI: http://carbonfields.net/
* License: GPL2
* Requires at least: 5.0
* Tested up to: 6.4
* Text Domain: carbon-fields
* Domain Path: /languages
*/
define( 'Carbon_Fields_Plugin\PLUGIN_FILE', __FILE__ );
define( 'Carbon_Fields_Plugin\RELATIVE_PLUGIN_FILE', basename( dirname( \Carbon_Fields_Plugin\PLUGIN_FILE ) ) . '/' . basename( \Carbon_Fields_Plugin\PLUGIN_FILE ) );
add_action( 'after_setup_theme', 'carbon_fields_boot_plugin' );
function carbon_fields_boot_plugin() {
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require( __DIR__ . '/vendor/autoload.php' );
}
\Carbon_Fields\Carbon_Fields::boot();
if ( is_admin() ) {
\Carbon_Fields_Plugin\Libraries\Plugin_Update_Warning\Plugin_Update_Warning::boot();
}
}